Core and composer updates
This commit is contained in:
parent
a82634bb98
commit
62cac30480
1118 changed files with 21770 additions and 6306 deletions
|
@ -20,6 +20,8 @@ use Drupal\Core\StreamWrapper\PrivateStream;
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::CHMOD_DIRECTORY.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
const FILE_CHMOD_DIRECTORY = FileSystem::CHMOD_DIRECTORY;
|
||||
|
||||
|
@ -28,6 +30,8 @@ const FILE_CHMOD_DIRECTORY = FileSystem::CHMOD_DIRECTORY;
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::CHMOD_FILE.
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
const FILE_CHMOD_FILE = FileSystem::CHMOD_FILE;
|
||||
|
||||
|
@ -77,6 +81,8 @@ const FILE_STATUS_PERMANENT = 1;
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::uriScheme().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function file_uri_scheme($uri) {
|
||||
return \Drupal::service('file_system')->uriScheme($uri);
|
||||
|
@ -87,6 +93,8 @@ function file_uri_scheme($uri) {
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::validScheme().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function file_stream_wrapper_valid_scheme($scheme) {
|
||||
return \Drupal::service('file_system')->validScheme($scheme);
|
||||
|
@ -386,6 +394,8 @@ function file_save_htaccess($directory, $private = TRUE, $force_overwrite = FALS
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev and will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Component\PhpStorage\FileStorage::htaccessLines().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function file_htaccess_lines($private = TRUE) {
|
||||
return FileStorage::htaccessLines($private);
|
||||
|
@ -919,6 +929,8 @@ function file_unmanaged_delete_recursive($path, $callback = NULL) {
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::moveUploadedFile().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function drupal_move_uploaded_file($filename, $uri) {
|
||||
return \Drupal::service('file_system')->moveUploadedFile($filename, $uri);
|
||||
|
@ -1103,6 +1115,8 @@ function file_upload_max_size() {
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::chmod().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function drupal_chmod($uri, $mode = NULL) {
|
||||
return \Drupal::service('file_system')->chmod($uri, $mode);
|
||||
|
@ -1113,6 +1127,8 @@ function drupal_chmod($uri, $mode = NULL) {
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::unlink().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function drupal_unlink($uri, $context = NULL) {
|
||||
return \Drupal::service('file_system')->unlink($uri, $context);
|
||||
|
@ -1123,6 +1139,8 @@ function drupal_unlink($uri, $context = NULL) {
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::realpath().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function drupal_realpath($uri) {
|
||||
return \Drupal::service('file_system')->realpath($uri);
|
||||
|
@ -1133,6 +1151,8 @@ function drupal_realpath($uri) {
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::dirname().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function drupal_dirname($uri) {
|
||||
return \Drupal::service('file_system')->dirname($uri);
|
||||
|
@ -1143,6 +1163,8 @@ function drupal_dirname($uri) {
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::basename().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function drupal_basename($uri, $suffix = NULL) {
|
||||
return \Drupal::service('file_system')->basename($uri, $suffix);
|
||||
|
@ -1154,6 +1176,8 @@ function drupal_basename($uri, $suffix = NULL) {
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::mkdir().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function drupal_mkdir($uri, $mode = NULL, $recursive = FALSE, $context = NULL) {
|
||||
return \Drupal::service('file_system')->mkdir($uri, $mode, $recursive, $context);
|
||||
|
@ -1164,6 +1188,8 @@ function drupal_mkdir($uri, $mode = NULL, $recursive = FALSE, $context = NULL) {
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::rmdir().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function drupal_rmdir($uri, $context = NULL) {
|
||||
return \Drupal::service('file_system')->rmdir($uri, $context);
|
||||
|
@ -1174,6 +1200,8 @@ function drupal_rmdir($uri, $context = NULL) {
|
|||
*
|
||||
* @deprecated in Drupal 8.0.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Core\File\FileSystem::tempnam().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function drupal_tempnam($directory, $prefix) {
|
||||
return \Drupal::service('file_system')->tempnam($directory, $prefix);
|
||||
|
@ -1218,6 +1246,8 @@ function file_directory_temp() {
|
|||
*
|
||||
* @deprecated in Drupal 8.3.x-dev, will be removed before Drupal 9.0.0.
|
||||
* Use \Drupal\Component\FileSystem\FileSystem::getOsTemporaryDirectory().
|
||||
*
|
||||
* @see https://www.drupal.org/node/2418133
|
||||
*/
|
||||
function file_directory_os_temp() {
|
||||
return ComponentFileSystem::getOsTemporaryDirectory();
|
||||
|
|
Reference in a new issue