Issue by jiff | DmitryDrozdik: Replace drupal_container() with Drupal::service() in the file module.

8.0.x
webchick 2013-06-17 01:12:16 -05:00
parent fada89f3c8
commit f5cc5ac72c
1 changed files with 1 additions and 1 deletions
core/modules/file

View File

@ -135,7 +135,7 @@ function file_load($fid, $reset = FALSE) {
* @return Drupal\file\FileUsage\FileUsageInterface.
*/
function file_usage() {
return drupal_container()->get('file.usage');
return Drupal::service('file.usage');
}
/**