Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/class-loader/XcacheClassLoader.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
line wrap: on
line diff
--- a/vendor/symfony/class-loader/XcacheClassLoader.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/class-loader/XcacheClassLoader.php Thu Feb 28 13:21:36 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); } }