コード例 #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']);
     }
 }
コード例 #2
0
 /**
  * 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']);
     }
 }
コード例 #3
0
 public function __construct(EntityManager $em, UrlGenerator $urlGenerator, array $options)
 {
     parent::__construct($urlGenerator, $options);
     $this->em = $em;
 }
コード例 #4
0
 /**
  * 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;
 }