ChillPersonBundle.php 655 Bytes
Newer Older
1 2 3 4 5
<?php

namespace Chill\PersonBundle;

use Symfony\Component\HttpKernel\Bundle\Bundle;
6 7
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Chill\PersonBundle\Widget\PersonListWidgetFactory;
8
use Chill\PersonBundle\DependencyInjection\CompilerPass\AccompanyingPeriodTimelineCompilerPass;
9 10 11

class ChillPersonBundle extends Bundle
{
12 13 14 15 16 17
    public function build(ContainerBuilder $container) 
    {
        parent::build($container);
        
        $container->getExtension('chill_main')
            ->addWidgetFactory(new PersonListWidgetFactory());
18 19
        
        $container->addCompilerPass(new AccompanyingPeriodTimelineCompilerPass());
20
    }
21
}