Unverified Commit b28328b7 authored by alexpott's avatar alexpott
Browse files

Issue #3020296 followup by mondrake: Remove Symfony's classloader as it does not exist in Symfony 4

parent 92ecd3b9
......@@ -473,7 +473,7 @@ public function boot() {
if (Settings::get('class_loader_auto_detect', TRUE) && method_exists($this->classLoader, 'setApcuPrefix')) {
// Vary the APCu key by which modules are installed to allow
// class_exists() checks to determine functionality.
$id = 'class_loader:' . crc32(implode(array_keys($this->container->getParameter('container.modules')), ':'));
$id = 'class_loader:' . crc32(implode(':', array_keys($this->container->getParameter('container.modules'))));
$prefix = Settings::getApcuPrefix($id, $this->root);
$this->classLoader->setApcuPrefix($prefix);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment