1 | <?php |
||
10 | class ContainerMapper extends AbstractXmlMapper { |
||
11 | |||
12 | public function map(Service ...$services) { |
||
13 | return [ |
||
14 | 'container' => [ |
||
15 | $this->attributes() => [ |
||
16 | 'xmlns' => 'http://symfony.com/schema/dic/services', |
||
17 | 'xmlns:xsi' => 'http://www.w3.org/2001/XMLSchema-instance', |
||
18 | ], |
||
19 | $this->item(new ParametersMapper()), |
||
20 | 'services' => $this->collection(new ServiceMapper(), $services), |
||
21 | ], |
||
22 | ]; |
||
23 | } |
||
24 | } |
||
25 |