protected function register(ContainerInterface $container)
{
$this->commander = $container->make('Kraken\\Runtime\\Command\\CommandManagerInterface');
$config = $container->make('Kraken\\Config\\ConfigInterface');
$runtime = $container->make('Kraken\\Runtime\\RuntimeContainerInterface');
$factory = $container->make('Kraken\\Channel\\ChannelFactoryInterface');
$master = $factory->create('Kraken\\Channel\\Channel', [$runtime->getParent() !== null ? $config->get('channel.channels.master.class') : 'Kraken\\Channel\\Model\\Null\\NullModel', array_merge($config->get('channel.channels.master.config'), ['host' => $runtime->getParent() !== null ? $runtime->getParent() : $runtime->getAlias()])]);
$slave = $factory->create('Kraken\\Channel\\Channel', [$config->get('channel.channels.slave.class'), $config->get('channel.channels.slave.config')]);
$composite = $factory->create('Kraken\\Channel\\ChannelComposite')->setBus('master', $master)->setBus('slave', $slave);
$container->instance('Kraken\\Runtime\\Service\\ChannelInternal', $composite);
}