Kraken\Util\Factory\FactoryPlugin::registerPlugin PHP Method

registerPlugin() public method

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