1 | <?php |
||
28 | final class SymfonyExtension implements Extension |
||
29 | { |
||
30 | /** |
||
31 | * Kernel used inside Behat contexts or to create services injected to them |
||
32 | * Container is built before every scenario |
||
33 | */ |
||
34 | const KERNEL_ID = Symfony2Extension::KERNEL_ID; |
||
35 | |||
36 | /** |
||
37 | * Kernel used by Symfony2 driver to isolate web container from contexts' container |
||
38 | * Container is built before every request |
||
39 | */ |
||
40 | const DRIVER_KERNEL_ID = 'sylius_symfony_extension.driver_kernel'; |
||
41 | |||
42 | /** |
||
43 | * Kernel that should be used by extensions only |
||
44 | * Container is built only once at the first use |
||
45 | */ |
||
46 | const SHARED_KERNEL_ID = 'sylius_symfony_extension.shared_kernel'; |
||
47 | |||
48 | /** |
||
49 | * The only container built by shared kernel |
||
50 | * To be used as a factory for shared injected application services |
||
51 | */ |
||
52 | const SHARED_KERNEL_CONTAINER_ID = 'sylius_symfony_extension.shared_kernel.container'; |
||
53 | |||
54 | /** |
||
55 | * {@inheritdoc} |
||
56 | */ |
||
57 | public function getConfigKey() |
||
61 | |||
62 | /** |
||
63 | * {@inheritdoc} |
||
64 | */ |
||
65 | public function initialize(ExtensionManager $extensionManager) |
||
77 | |||
78 | /** |
||
79 | * {@inheritdoc} |
||
80 | */ |
||
81 | public function configure(ArrayNodeDefinition $builder) |
||
84 | |||
85 | /** |
||
86 | * {@inheritdoc} |
||
87 | */ |
||
88 | public function load(ContainerBuilder $container, array $config) |
||
95 | |||
96 | /** |
||
97 | * {@inheritdoc} |
||
98 | */ |
||
99 | public function process(ContainerBuilder $container) |
||
102 | |||
103 | /** |
||
104 | * @param ContainerBuilder $container |
||
105 | */ |
||
106 | private function declareDriverKernel(ContainerBuilder $container) |
||
110 | |||
111 | /** |
||
112 | * @param ContainerBuilder $container |
||
113 | */ |
||
114 | private function declareSharedKernel(ContainerBuilder $container) |
||
118 | |||
119 | /** |
||
120 | * @param ContainerBuilder $container |
||
121 | */ |
||
122 | private function declareSharedKernelContainer(ContainerBuilder $container) |
||
132 | } |
||
133 |