Kraken\Root\Console\Server\Provider\ChannelProvider::register PHP Метод

register() защищенный Метод

protected register ( Kraken\Container\ContainerInterface $container )
$container Kraken\Container\ContainerInterface
    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', [$config->get('channel.channels.master.class'), $config->get('channel.channels.master.config')]);
        $slave = $factory->create('Kraken\\Channel\\Channel', [$config->get('channel.channels.slave.class'), array_merge($config->get('channel.channels.slave.config'), ['name' => Runtime::RESERVED_CONSOLE_CLIENT])]);
        $composite = $factory->create('Kraken\\Channel\\ChannelComposite')->setBus('master', $master)->setBus('slave', $slave);
        $container->instance('Kraken\\Runtime\\Service\\ChannelInternal', $composite);
    }