Beispiel #1
0
 /**
  * @inheritdoc
  */
 public function produce($what)
 {
     $factory = new Factory();
     return $factory->makeOrFail($this, $what);
 }
Beispiel #2
0
 /**
  * Derives a presenter for the passed object. If the presenter does not
  * exist an exception is thrown.
  *
  * @throws NotProducibleException
  * @param Producer $object
  * @return Presenter
  */
 public function makeOrFail(Presentable $object)
 {
     return $this->productionFactory->makeOrFail($object, 'presenter');
 }