SymfonyBridgeBundle icon indicating copy to clipboard operation
SymfonyBridgeBundle copied to clipboard

Services are private by default (Symfony 4)

Open frostieDE opened this issue 6 years ago • 0 comments

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 😉

frostieDE avatar Apr 28 '18 12:04 frostieDE