Beispiel #1
0
 /**
  * @param array $params
  * @param array $setters
  * @param string $class
  * @param string $name
  * @param integer $flags
  */
 public function __construct(array $params, array $setters, $class, $name, $flags)
 {
     $this->params = $params;
     $this->setters = $setters;
     parent::__construct($class, $name, $flags);
     if ($this->hasInjectionPointParam() && !$this->isFactory()) {
         throw new Exception\DomainException('Definition with injection point must be marked as factory');
     }
 }
Beispiel #2
0
 public function __construct($class, $name, $flags, $setters)
 {
     parent::__construct($class, $name, $flags);
     $this->setters = $setters;
 }