Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function execute(InputInterface $input, OutputInterface $output): int |
||
18 | { |
||
19 | $reflectionClass = new ReflectionClass(Kernel::class); |
||
20 | /** @var Serializer $serializer */ |
||
21 | $serializer = $reflectionClass->getProperty('serializer')->getValue($this->kernel); |
||
22 | $serializerClass = new ReflectionClass($serializer); |
||
23 | if (rmdir($serializerClass->getProperty('serializedDir')->getValue($serializer))) { |
||
24 | throw new \Exception('Cannot remove dir: ' . |
||
25 | $serializerClass->getProperty('serializedDir')->getValue($serializer)); |
||
26 | } |
||
27 | return self::SUCCESS; |
||
28 | } |
||
29 | } |