Sylius\Bundle\PromotionBundle\Form\EventListener\AbstractConfigurationSubscriber::__construct PHP Method

__construct() public method

public __construct ( Sylius\Component\Registry\ServiceRegistryInterface $registry, Symfony\Component\Form\FormFactoryInterface $factory )
$registry Sylius\Component\Registry\ServiceRegistryInterface
$factory Symfony\Component\Form\FormFactoryInterface
    public function __construct(ServiceRegistryInterface $registry, FormFactoryInterface $factory)
    {
        $this->registry = $registry;
        $this->factory = $factory;
    }

Usage Example

 /**
  * @param ServiceRegistryInterface $actionRegistry
  * @param FormFactoryInterface $factory
  * @param ChannelRepositoryInterface $channelRepository
  */
 public function __construct(ServiceRegistryInterface $actionRegistry, FormFactoryInterface $factory, ChannelRepositoryInterface $channelRepository)
 {
     parent::__construct($actionRegistry, $factory);
     $this->channelRepository = $channelRepository;
 }