0

I installed simplesamlphp_auth(8x-3.2) module with drupal (9.1.x). SimpleSAMLphp (1.18.8) is configured correctly. saml authentication works fine, but while clearing cache i am getting the below error.
Error: Call to undefined method Symfony\Component\DependencyInjection\Alias::setDeprecated() in Drupal\Core\DependencyInjection\YamlFileLoader->parseDefinition() (line 157 of /docroot/core/lib/Drupal/Core/DependencyInjection/YamlFileLoader.php).
After spending few hours I found that drush is using Symfony\Component\DependencyInjection\Alias from SimpleSAMLphp instead of drupal. Symfony DependencyInjection library is different between SimpleSAMLphp Library and Drupal. In Drupal Symfony\Component\DependencyInjection\Alias::setDeprecated method is available but not in SimpleSAMLphp. I did not find why all logged-in page namespaces other than Drupal* are taken from SimpleSAMLphp Library. SimpleSAMLphp Library folder is parallel to drupal docroot and it has its own composer.json.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.