1 | <?php |
||
14 | class ContainerConfig |
||
15 | { |
||
16 | /** |
||
17 | * Fragment name for the container configuration. |
||
18 | */ |
||
19 | const FRAGMENT_FOR_CONTAINER = 'container'; |
||
20 | |||
21 | /** |
||
22 | * Whether the compiled container should be cached. |
||
23 | * |
||
24 | * **Note:** Changes to services won't apply until the compiled container is re-created. |
||
25 | * You can use `icanboogie clear cache` or delete the file for the compiled container to |
||
26 | * be updated. |
||
27 | */ |
||
28 | const USE_CACHING = 'use_caching'; |
||
29 | |||
30 | /** |
||
31 | * Define container extensions using an array of key/value pairs, where _key_ is an identifier |
||
32 | * and _value_ a callable with the following signature: |
||
33 | * |
||
34 | * \Symfony\Component\DependencyInjection\Extension\ExtensionInterface (\ICanBoogie\Application $app) |
||
35 | */ |
||
36 | const EXTENSIONS = 'extensions'; |
||
37 | |||
38 | /** |
||
39 | * @param array $fragments |
||
40 | * |
||
41 | * @return array |
||
42 | */ |
||
43 | static public function synthesize(array $fragments) |
||
73 | |||
74 | /** |
||
75 | * @param array $config |
||
76 | * |
||
77 | * @return array |
||
78 | */ |
||
79 | static public function normalize(array $config) |
||
88 | } |
||
89 |