1 | <?php |
||
20 | class ApplicationExtension extends Extension |
||
21 | { |
||
22 | const GETTER_PREFIX = 'get_'; |
||
23 | const LAZY_GETTER_PREFIX = 'lazy_get_'; |
||
24 | |||
25 | /** |
||
26 | * Create a new instance. |
||
27 | * |
||
28 | * @param Application $app |
||
29 | * |
||
30 | * @return static |
||
31 | */ |
||
32 | static public function from(Application $app) |
||
36 | |||
37 | /** |
||
38 | * @var Application |
||
39 | */ |
||
40 | private $app; |
||
41 | |||
42 | /** |
||
43 | * @param Application $app |
||
44 | */ |
||
45 | public function __construct(Application $app) |
||
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | public function load(array $configs, ContainerBuilder $container) |
||
64 | |||
65 | /** |
||
66 | * @param ContainerBuilder $container |
||
67 | */ |
||
68 | private function add_parameters(ContainerBuilder $container) |
||
76 | |||
77 | /** |
||
78 | * @param ContainerBuilder $container |
||
79 | */ |
||
80 | private function add_services(ContainerBuilder $container) |
||
104 | |||
105 | /** |
||
106 | * @param string $param |
||
107 | * |
||
108 | * @return string |
||
109 | */ |
||
110 | private function normalize_param($param) |
||
120 | } |
||
121 |