aws-samples / eb-php-drupal

Configuration files and instructions for installing Drupal securely and running it in a load balanced AWS Elastic Beanstalk environment with an EFS file system for shared assets.
Apache License 2.0
46 stars 24 forks source link

Symfony\Component\ClassLoader\ApcClassLoader depreceated #9

Open dottodot opened 3 years ago

dottodot commented 3 years ago

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 commented 3 years ago

Actually just seen this pull request https://github.com/aws-samples/eb-php-drupal/pull/8