Skip to content

Symfony\Component\ClassLoader\ApcClassLoader depreceated #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dottodot opened this issue Apr 3, 2021 · 1 comment
Open

Symfony\Component\ClassLoader\ApcClassLoader depreceated #9

dottodot opened this issue Apr 3, 2021 · 1 comment

Comments

@dottodot
Copy link

dottodot commented Apr 3, 2021

since v4 of Symfony Symfony\Component\ClassLoader\ApcClassLoader is deprecated meaning the following code in settings.php throws an error

if ($settings['hash_salt']) {
  $prefix = 'drupal.' . hash('sha256', 'drupal.' . $settings['hash_salt']);
  $apc_loader = new \Symfony\Component\ClassLoader\ApcClassLoader($prefix, $class_loader);
  unset($prefix);
  $class_loader->unregister();
   $apc_loader->register();
  $class_loader = $apc_loader;
}

Not too familiar with ApcClassLoader to know what the alternative is.

@dottodot
Copy link
Author

dottodot commented Apr 3, 2021

Actually just seen this pull request #8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant