private function loadKernel($adapterName, $configName, $debug, ContainerBuilder $container)
    {
        $definition = new Definition(
            Utility::getLibraryClass('Rest\RestKernel'),
            [
                new Reference($adapterName),
                new Reference($configName),
            ]
        );
        $definition->addMethodCall('enableDebug', [$debug]);
        $container->setDefinition(Utility::getAliasedName('rest.kernel'), $definition);
    }
private function loadKernel($adapterName, $configName, $debug, ContainerBuilder $container)
    {
        $definition = new Definition(
            Utility::getLibraryClass('Rest\RestKernel'),
            [
                new Reference($adapterName),
                new Reference($configName),
            ]
        );
        $definition->addMethodCall('enableDebug', [$debug]);
        $container->setDefinition(Utility::getAliasedName('rest.kernel'), $definition);
    }
private function loadKernel ( $ adapterName , $ configName , $ debug , ContainerBuilder $ container ) { $ definition = new Definition ( Utility :: getLibraryClass ( 'Rest\RestKernel' ) , [ new Reference ( $ adapterName ) , new Reference ( $ configName ) , ] ) ; $ definition -> addMethodCall ( 'enableDebug' , [ $ debug ] ) ; $ container -> setDefinition ( Utility :: getAliasedName ( 'rest.kernel' ) , $ definition ) ; }
Loads the Rest Kernel service based on the config.

@param   string              $adapterName
@param   string              $configName
@param   bool                $debug
@param   ContainerBuilder    $container
@return  self
Loads the Rest Kernel service based on the config .