Example #1
0
 /**
  * @param array $options The options (see the class comment).
  */
 public function __construct(UrlGenerator $urlGenerator, array $options)
 {
     parent::__construct($urlGenerator, $options);
     if (!class_exists($options['model'])) {
         throw new \LogicException('Can\'t find class ' . $options['model']);
     }
 }
 /**
  * Constructor
  *
  * @param RouterInterface $router  The application router.
  * @param array           $options The options (see the class comment).
  */
 public function __construct(RouterInterface $router, array $options)
 {
     parent::__construct($router, $options);
     if (!class_exists($options['model'])) {
         throw new \LogicException('Can\'t find class ' . $options['model']);
     }
 }
 public function __construct(EntityManager $em, UrlGenerator $urlGenerator, array $options)
 {
     parent::__construct($urlGenerator, $options);
     $this->em = $em;
 }
 /**
  * Constructor
  *
  * @param Entitymanager   $em      Doctrine entity manager.
  * @param RouterInterface $router  The application router.
  * @param array           $options The options (see the class comment).
  */
 public function __construct(EntityManager $em, RouterInterface $router, array $options)
 {
     parent::__construct($router, $options);
     $this->em = $em;
 }