/** * @param string $class * @param ManagerRegistry $registry */ public function __construct($class, ManagerRegistry $registry, SecurityContext $securityContext) { parent::__construct($class, $registry); $this->user = $securityContext->getToken()->getUser(); if ($this->user) { $this->userId = $this->user->getId(); } else { $this->userId = 0; } $this->categories = array(); }
/** * * @access public * @param \Symfony\Component\EventDispatcher\EventDispatcherInterface $dispatcher * @param \Bruery\UserSecurityBundle\Model\Component\Gateway\GatewayInterface $gateway */ public function __construct($class, ManagerRegistry $registry, EventDispatcherInterface $dispatcher, GatewayInterface $gateway) { parent::__construct($class, $registry); $this->dispatcher = $dispatcher; $this->gateway = $gateway; }
/** * @param string $class * @param ManagerRegistry $registry * @param array $defaults * @param array $pageDefaults */ public function __construct($class, ManagerRegistry $registry, array $defaults = array(), array $pageDefaults = array()) { parent::__construct($class, $registry); $this->defaults = $defaults; $this->pageDefaults = $pageDefaults; }
/** * @param string $class * @param ManagerRegistry $registry * @param ContextManagerInterface $contextManager */ public function __construct($class, ManagerRegistry $registry, ContextManagerInterface $contextManager) { parent::__construct($class, $registry); $this->contextManager = $contextManager; $this->categories = array(); }
/** * Constructor. * * @param string $class * @param ManagerRegistry $registry * @param ManagerInterface $postManager */ public function __construct($class, ManagerRegistry $registry, ManagerInterface $postManager) { parent::__construct($class, $registry); $this->postManager = $postManager; }
/** * UserManagerProxy constructor. * * @param string $class * @param ManagerRegistry $registry * @param UserManager $userManager */ public function __construct($class, ManagerRegistry $registry, UserManager $userManager) { parent::__construct($class, $registry); $this->userManager = $userManager; }
/** * Constructor * * @param string $class Namespace of entity class * @param ManagerRegistry $registry An entity manager instance * @param array $templates An array of templates */ public function __construct($class, ManagerRegistry $registry, $templates = array()) { parent::__construct($class, $registry); $this->templates = $templates; }
/** * @param string $class * @param ManagerRegistry $registry */ public function __construct($class, ManagerRegistry $registry) { parent::__construct($class, $registry); $this->categories = array(); }