mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
- create interfaces - create an export manager - add a compiler pass to gather services tagged for export
25 lines
989 B
PHP
25 lines
989 B
PHP
<?php
|
|
|
|
namespace Chill\MainBundle;
|
|
|
|
use Symfony\Component\HttpKernel\Bundle\Bundle;
|
|
use Symfony\Component\DependencyInjection\ContainerBuilder;
|
|
use Chill\MainBundle\DependencyInjection\SearchableServicesCompilerPass;
|
|
use Chill\MainBundle\DependencyInjection\ConfigConsistencyCompilerPass;
|
|
use Chill\MainBundle\DependencyInjection\TimelineCompilerClass;
|
|
use Chill\MainBundle\DependencyInjection\RoleProvidersCompilerPass;
|
|
use Chill\MainBundle\DependencyInjection\CompilerPass\ExportsCompilerPass;
|
|
|
|
class ChillMainBundle extends Bundle
|
|
{
|
|
public function build(ContainerBuilder $container)
|
|
{
|
|
parent::build($container);
|
|
$container->addCompilerPass(new SearchableServicesCompilerPass());
|
|
$container->addCompilerPass(new ConfigConsistencyCompilerPass());
|
|
$container->addCompilerPass(new TimelineCompilerClass());
|
|
$container->addCompilerPass(new RoleProvidersCompilerPass());
|
|
$container->addCompilerPass(new ExportsCompilerPass());
|
|
}
|
|
}
|