Kraken\Util\Factory\SimpleFactoryPlugin::registerPlugin PHP Метод

registerPlugin() публичный Метод

public registerPlugin ( Kraken\Util\Factory\SimpleFactoryInterface $factory )
$factory Kraken\Util\Factory\SimpleFactoryInterface
    public function registerPlugin(SimpleFactoryInterface $factory)
    {
        try {
            $this->register($factory);
            $this->registered = true;
        } catch (Error $ex) {
            $this->throwException($ex);
        } catch (Exception $ex) {
            $this->throwException($ex);
        }
        return $this;
    }