Mercurial > hg > isophonics-drupal-site
diff vendor/symfony/class-loader/WinCacheClassLoader.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/WinCacheClassLoader.php Tue Jul 10 15:07:59 2018 +0100 +++ b/vendor/symfony/class-loader/WinCacheClassLoader.php Thu Feb 28 13:21:36 2019 +0000 @@ -68,7 +68,7 @@ */ public function __construct($prefix, $decorated) { - if (!extension_loaded('wincache')) { + if (!\extension_loaded('wincache')) { throw new \RuntimeException('Unable to use WinCacheClassLoader as WinCache is not enabled.'); } @@ -87,7 +87,7 @@ */ public function register($prepend = false) { - spl_autoload_register(array($this, 'loadClass'), true, $prepend); + spl_autoload_register([$this, 'loadClass'], true, $prepend); } /** @@ -95,7 +95,7 @@ */ public function unregister() { - spl_autoload_unregister(array($this, 'loadClass')); + spl_autoload_unregister([$this, 'loadClass']); } /** @@ -137,6 +137,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); } }