src/CarteBlanche/Loader/FrontControllerLoader.php
public function load(array $config = null, \CarteBlanche\App\Container $container)
    {
        $em_cfg = CarteBlanche::getConfig('default_front_controller');
        if (isset($em_cfg['class'])) {
            $em_class = $em_cfg['class'];
        } else {
            throw new \RuntimeException(
                sprintf('Front controller configuration must define a class name ("%s")!', 'default_front_controller')
            );
        }
        if (!empty($em_class)) {
            $factory = \Library\Factory::create()
                ->factoryName('FrontController')
                ->mustImplement(Kernel::FRONT_CONTROLLER_INTERFACE)
                ->callMethod('getInstance')
                ;
            return $factory->build($em_class);
        }
        return null;
    }
public function load(array $config = null, \CarteBlanche\App\Container $container)
    {
        $em_cfg = CarteBlanche::getConfig('default_front_controller');
        if (isset($em_cfg['class'])) {
            $em_class = $em_cfg['class'];
        } else {
            throw new \RuntimeException(
                sprintf('Front controller configuration must define a class name ("%s")!', 'default_front_controller')
            );
        }
        if (!empty($em_class)) {
            $factory = \Library\Factory::create()
                ->factoryName('FrontController')
                ->mustImplement(Kernel::FRONT_CONTROLLER_INTERFACE)
                ->callMethod('getInstance')
                ;
            return $factory->build($em_class);
        }
        return null;
    }
Instance loader

@param   array                       $config
@param   \CarteBlanche\App\Container $container
@return  null/object
@throws  \RuntimeException if the config doesn't define a FrontController classname