protected function register(ContainerInterface $container)
{
$factory = $container->make('Kraken\\Channel\\ChannelFactoryInterface');
$config = $container->make('Kraken\\Config\\ConfigInterface');
$console = $container->make('Kraken\\Console\\Client\\ClientInterface');
$channel = $factory->create('Kraken\\Channel\\Channel', [$config->get('channel.channels.console.class'), array_merge($config->get('channel.channels.console.config'), ['host' => Runtime::RESERVED_CONSOLE_SERVER])]);
$this->applyConsoleController($channel);
$console->on('start', function () use($channel) {
$channel->start();
});
$console->on('stop', function () use($channel) {
$channel->stop();
});
$container->instance('Kraken\\Console\\Client\\Service\\ChannelConsole', $channel);
}