Conditions | 2 |
Paths | 2 |
Total Lines | 16 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
31 | public function process(ContainerBuilder $container) |
||
32 | { |
||
33 | $config = $container->getParameter('bengor_file.config'); |
||
34 | |||
35 | $downloadConfiguration = []; |
||
36 | |||
37 | foreach ($config['file_class'] as $key => $file) { |
||
38 | $downloadConfiguration[$key] = [ |
||
39 | 'storage' => $file['storage'], |
||
40 | 'upload_destination' => $file['upload_destination'], |
||
41 | 'upload_dir' => $file['upload_dir'], |
||
42 | ]; |
||
43 | } |
||
44 | |||
45 | (new DownloadRoutesLoaderBuilder($container, $downloadConfiguration))->build(); |
||
46 | } |
||
47 | } |
||
48 |