Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
33 | public function process(ContainerBuilder $container) |
||
34 | { |
||
35 | $config = $container->getParameter('bengor_file.config'); |
||
36 | |||
37 | foreach ($config['file_class'] as $key => $file) { |
||
38 | $container->setDefinition( |
||
39 | 'bengor_file.file_bundle.twig.view_extension_' . $key, |
||
40 | (new Definition( |
||
41 | DownloadExtension::class, [ |
||
42 | $container->getDefinition('router'), |
||
43 | $key, |
||
44 | ] |
||
45 | ))->setPublic(false) |
||
46 | ); |
||
47 | } |
||
48 | } |
||
49 | } |
||
50 |