Total Complexity | 5 |
Total Lines | 30 |
Duplicated Lines | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
7 | class ScriptController extends Controller |
||
8 | { |
||
9 | use ControllerTrait; |
||
10 | |||
11 | public function redisAction() |
||
12 | { |
||
13 | return $this->runApp('sludio:redis:flush'); |
||
14 | } |
||
15 | |||
16 | public function cacheAction() |
||
17 | { |
||
18 | $commands = [ |
||
19 | 'clear', |
||
20 | 'warmup', |
||
21 | ]; |
||
22 | foreach ($commands as $command) { |
||
23 | $this->runApp('cache:'.$command, ['--env' => $this->container->get('kernel')->getEnvironment()], false); |
||
24 | } |
||
25 | |||
26 | return $this->result(); |
||
27 | } |
||
28 | |||
29 | public function lexikAction() |
||
32 | } |
||
33 | |||
34 | public function generateAction() |
||
39 |