trait MicroKernelTrait

A Kernel that provides configuration hooks.

Methods

configureRoutes(RouteCollectionBuilder $routes)

Add or import routes into your application.

configureContainer(ContainerBuilder $c, LoaderInterface $loader)

Configures the container.

loadRoutes(LoaderInterface $loader)

No description

Details

at line 35
abstract protected configureRoutes(RouteCollectionBuilder $routes)

Add or import routes into your application.

$routes->import('config/routing.yml'); $routes->add('/admin', 'App\Controller\AdminController::dashboard', 'admin_dashboard');

Parameters

RouteCollectionBuilder $routes

at line 57
abstract protected configureContainer(ContainerBuilder $c, LoaderInterface $loader)

Configures the container.

You can register extensions:

$c->loadFromExtension('framework', array(
    'secret' => '%secret%'
));

Or services:

$c->register('halloween', 'FooBundle\HalloweenProvider');

Or parameters:

$c->setParameter('halloween', 'lot of fun');

Parameters

ContainerBuilder $c
LoaderInterface $loader

at line 62
registerContainerConfiguration(LoaderInterface $loader)

{@inheritdoc}

Parameters

LoaderInterface $loader

at line 89
loadRoutes(LoaderInterface $loader)

Parameters

LoaderInterface $loader