Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
12 | public function handle(Jigsaw $jigsaw): void |
||
13 | { |
||
14 | /** @var RssFeedConfiguration $configuration */ |
||
15 | $configuration = $jigsaw->app->get(RssFeedConfiguration::class); |
||
16 | |||
17 | /** @var GenerateRssFeed $handler */ |
||
18 | $handler = $jigsaw->app->make(GenerateRssFeed::class); |
||
19 | |||
20 | $outputXmlFile = $handler->execute($configuration); |
||
21 | file_put_contents($outputXmlFile->path(), $outputXmlFile->content()); |
||
22 | } |
||
24 |