Mercurial > hg > cmmr2012-drupal-site
diff vendor/symfony/class-loader/XcacheClassLoader.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children |
line wrap: on
line diff
--- a/vendor/symfony/class-loader/XcacheClassLoader.php Thu Feb 28 11:14:44 2019 +0000 +++ b/vendor/symfony/class-loader/XcacheClassLoader.php Thu Feb 28 13:11:55 2019 +0000 @@ -62,7 +62,7 @@ */ public function __construct($prefix, $decorated) { - if (!extension_loaded('xcache')) { + if (!\extension_loaded('xcache')) { throw new \RuntimeException('Unable to use XcacheClassLoader as XCache is not enabled.'); } @@ -81,7 +81,7 @@ */ public function register($prepend = false) { - spl_autoload_register(array($this, 'loadClass'), true, $prepend); + spl_autoload_register([$this, 'loadClass'], true, $prepend); } /** @@ -89,7 +89,7 @@ */ public function unregister() { - spl_autoload_unregister(array($this, 'loadClass')); + spl_autoload_unregister([$this, 'loadClass']); } /** @@ -132,6 +132,6 @@ */ public function __call($method, $args) { - return call_user_func_array(array($this->decorated, $method), $args); + return \call_user_func_array([$this->decorated, $method], $args); } }