Services are private by default (Symfony 4)
frostieDE opened this issue · 0 comments
frostieDE commented
Starting with Symfony 4, services are marked private per default, which means that you cannot get services by calling $container->get('service.name') anymore. Doing so leads to a ServiceNotFoundException.
Unfortunately, this bundle makes use of $container->get() to get LightSAML services. Thus, they need to be either marked public (easy solution) or injected using DI (this is the recommended solution).
Note: this issue affects both SpBundle and SymfonyBridgeBundle 😉