Conditions | 4 |
Paths | 1 |
Total Lines | 27 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
18 | public function generate(string $projectDir, bool $overwriteSecurity, bool $overwriteLiipImagine, bool $overwriteFosHttpCache) |
||
19 | { |
||
20 | $this->renderSingleFile( |
||
21 | $this->skeletonDir, |
||
22 | $projectDir . '/config/packages/', |
||
23 | 'security.yaml', |
||
24 | [], |
||
25 | true, |
||
26 | $overwriteSecurity ? 'security.yaml' : 'security.yaml.example' |
||
27 | ); |
||
28 | $this->renderSingleFile( |
||
29 | $this->skeletonDir, |
||
30 | $projectDir . '/config/packages/', |
||
31 | 'liip_imagine.yaml', |
||
32 | [], |
||
33 | true, |
||
34 | $overwriteLiipImagine ? 'liip_imagine.yaml' : 'liip_imagine.yaml.example' |
||
35 | ); |
||
36 | $this->renderSingleFile( |
||
37 | $this->skeletonDir, |
||
38 | $projectDir . '/config/packages/prod/', |
||
39 | 'fos_http_cache.yaml', |
||
40 | [], |
||
41 | true, |
||
42 | $overwriteFosHttpCache ? 'fos_http_cache.yaml' : 'fos_http_cache.yaml.example' |
||
43 | ); |
||
44 | } |
||
45 | } |
||
46 |