22namespace Fp \OpenIdBundle \DependencyInjection \Security \Factory ;
33
44use Symfony \Component \Config \Definition \Builder \NodeDefinition ;
5+ use Symfony \Component \DependencyInjection \ChildDefinition ;
56use Symfony \Component \DependencyInjection \ContainerBuilder ;
6- use Symfony \Component \DependencyInjection \DefinitionDecorator ;
77use Symfony \Component \DependencyInjection \Reference ;
88use Symfony \Bundle \SecurityBundle \DependencyInjection \Security \Factory \AbstractFactory ;
99
@@ -92,7 +92,7 @@ protected function createAuthProvider(ContainerBuilder $container, $id, $config,
9292 {
9393 $ providerId = 'security.authentication.provider.fp_openid. ' .$ id ;
9494 $ provider = $ container
95- ->setDefinition ($ providerId , new DefinitionDecorator ('security.authentication.provider.fp_openid ' ))
95+ ->setDefinition ($ providerId , new ChildDefinition ('security.authentication.provider.fp_openid ' ))
9696 ->replaceArgument (0 , $ id );
9797
9898 // with user provider
@@ -115,12 +115,12 @@ protected function createEntryPoint($container, $id, $config, $defaultEntryPoint
115115 $ entryPointId = 'security.authentication.form_entry_point. ' .$ id ;
116116
117117 $ container
118- ->setDefinition ($ entryPointId , new DefinitionDecorator ('security.authentication.form_entry_point ' ))
118+ ->setDefinition ($ entryPointId , new ChildDefinition ('security.authentication.form_entry_point ' ))
119119 ->addArgument (new Reference ('security.http_utils ' ))
120120 ->addArgument ($ config ['login_path ' ])
121121 ->addArgument ($ config ['use_forward ' ])
122122 ;
123123
124124 return $ entryPointId ;
125125 }
126- }
126+ }
0 commit comments