-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathVespolinaCommerceBundle.php
More file actions
28 lines (23 loc) · 963 Bytes
/
VespolinaCommerceBundle.php
File metadata and controls
28 lines (23 loc) · 963 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
/**
* (c) 2011 - ∞ Vespolina Project http://www.vespolina-project.org
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
namespace Vespolina\CommerceBundle;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
use Vespolina\CommerceBundle\DependencyInjection\Compiler\EventDispatcherListenerPass;
use Vespolina\CommerceBundle\DependencyInjection\Compiler\OrderHandlerFactoryPass;
use Vespolina\CommerceBundle\DependencyInjection\Compiler\ProductHandlerFactoryPass;
class VespolinaCommerceBundle extends Bundle
{
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new EventDispatcherListenerPass());
$container->addCompilerPass(new OrderHandlerFactoryPass());
$container->addCompilerPass(new ProductHandlerFactoryPass());
}
}