public function setAbstract($abstract) { if ($abstract) { throw new InvalidServiceException('Factory service "' . $this->getName() . '" cannot be defined as abstract.'); } parent::setAbstract($abstract); }