Skip to content

Commit

Permalink
use ChildDefinition instead of DefinitionDecorator (#485)
Browse files Browse the repository at this point in the history
  • Loading branch information
gharlan authored and marcj committed Feb 12, 2018
1 parent ea6a359 commit d671fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DependencyInjection/Security/UserProvider/PropelFactory.php
Expand Up @@ -11,7 +11,7 @@

use Symfony\Bundle\SecurityBundle\DependencyInjection\Security\UserProvider\UserProviderFactoryInterface;
use Symfony\Component\Config\Definition\Builder\NodeDefinition;
use Symfony\Component\DependencyInjection\DefinitionDecorator;
use Symfony\Component\DependencyInjection\ChildDefinition;
use Symfony\Component\DependencyInjection\ContainerBuilder;
/**
* PropelFactory creates services for Propel user provider.
Expand All @@ -30,7 +30,7 @@ public function __construct($key, $providerId)
public function create(ContainerBuilder $container, $id, $config)
{
$container
->setDefinition($id, new DefinitionDecorator($this->providerId))
->setDefinition($id, new ChildDefinition($this->providerId))
->addArgument($config['class'])
->addArgument($config['property'])
;
Expand Down

0 comments on commit d671fbe

Please sign in to comment.