Kraken\Root\Runtime\Provider\SupervisorProvider::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');
        $errorManager = $container->make('Kraken\\Supervision\\SupervisorInterface', [null, $config->get('supervision.base.params')]);
        $errorSupervisor = $container->make('Kraken\\Supervision\\SupervisorInterface', [null, $config->get('supervision.remote.params')]);
        $container->instance('Kraken\\Runtime\\Supervision\\SupervisorBaseInterface', $errorManager);
        $container->instance('Kraken\\Runtime\\Supervision\\SupervisorRemoteInterface', $errorSupervisor);
    }