forked from paulKliemann/dynamic-form-bundle
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDynamicFormBundle.php
More file actions
29 lines (25 loc) · 980 Bytes
/
DynamicFormBundle.php
File metadata and controls
29 lines (25 loc) · 980 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
29
<?php
namespace DynamicFormBundle;
use DynamicFormBundle\DependencyInjection\Compiler\DynamicFormConfigValueFactoryPass;
use DynamicFormBundle\DependencyInjection\Compiler\DynamicFormElementPass;
use DynamicFormBundle\DependencyInjection\Compiler\DynamicFormFieldOptionPass;
use DynamicFormBundle\DependencyInjection\Compiler\DynamicFormTypePass;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\HttpKernel\Bundle\Bundle;
/**
* @package DynamicFormBundle
*/
class DynamicFormBundle extends Bundle
{
/**
* @param ContainerBuilder $container
*/
public function build(ContainerBuilder $container)
{
parent::build($container);
$container->addCompilerPass(new DynamicFormTypePass());
$container->addCompilerPass(new DynamicFormFieldOptionPass());
$container->addCompilerPass(new DynamicFormElementPass());
$container->addCompilerPass(new DynamicFormConfigValueFactoryPass());
}
}