Networking\InitCmsBundle\Form\Type\AutocompleteType::__construct PHP Method

__construct() public method

AutocompleteType constructor.
public __construct ( Doctrine\Common\Persistence\ManagerRegistry $registry, Symfony\Component\PropertyAccess\PropertyAccessorInterface $propertyAccessor = null, Symfony\Component\Form\ChoiceList\Factory\ChoiceListFactoryInterface $choiceListFactory = null )
$registry Doctrine\Common\Persistence\ManagerRegistry
$propertyAccessor Symfony\Component\PropertyAccess\PropertyAccessorInterface
$choiceListFactory Symfony\Component\Form\ChoiceList\Factory\ChoiceListFactoryInterface
    public function __construct(ManagerRegistry $registry, PropertyAccessorInterface $propertyAccessor = null, ChoiceListFactoryInterface $choiceListFactory = null)
    {
        $this->registry = $registry;
        $this->choiceListFactory = $choiceListFactory ?: new CachingFactoryDecorator(new PropertyAccessDecorator(new DefaultChoiceListFactory(), $propertyAccessor));
    }