/** * @inheritdoc */ public function produce($what) { $factory = new Factory(); return $factory->makeOrFail($this, $what); }
/** * 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'); }