Kraken\Root\Provider\LoopProvider::register PHP Method

register() protected method

protected register ( Kraken\Container\ContainerInterface $container )
$container Kraken\Container\ContainerInterface
    protected function register(ContainerInterface $container)
    {
        $config = $container->make('Kraken\\Config\\ConfigInterface');
        $model = $config->get('loop.model');
        $loop = new Loop(new $model());
        $container->instance('Kraken\\Loop\\LoopInterface', $loop);
        $container->instance('Kraken\\Loop\\LoopExtendedInterface', $loop);
    }