1 | <?php declare(strict_types=1); |
||
34 | class TemplatesCommand implements CommandInterface |
||
35 | { |
||
36 | /** |
||
37 | * Command name. |
||
38 | */ |
||
39 | const NAME = 'l:templates'; |
||
40 | |||
41 | /** Argument name */ |
||
42 | const ARG_ACTION = 'action'; |
||
43 | |||
44 | /** Command action */ |
||
45 | const ACTION_CLEAR_CACHE = 'clear-cache'; |
||
46 | |||
47 | /** Command action */ |
||
48 | const ACTION_CREATE_CACHE = 'cache'; |
||
49 | |||
50 | /** |
||
51 | * @inheritdoc |
||
52 | */ |
||
53 | 1 | public static function getName(): string |
|
57 | |||
58 | /** |
||
59 | * @inheritdoc |
||
60 | */ |
||
61 | 1 | public static function getDescription(): string |
|
65 | |||
66 | /** |
||
67 | * @inheritdoc |
||
68 | */ |
||
69 | 1 | public static function getHelp(): string |
|
73 | |||
74 | /** |
||
75 | * @inheritdoc |
||
76 | */ |
||
77 | 1 | public static function getArguments(): array |
|
90 | |||
91 | /** |
||
92 | * @inheritdoc |
||
93 | */ |
||
94 | 1 | public static function getOptions(): array |
|
98 | |||
99 | /** |
||
100 | * @inheritdoc |
||
101 | * |
||
102 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
103 | */ |
||
104 | 3 | public static function execute(ContainerInterface $container, IoInterface $inOut): void |
|
119 | |||
120 | /** |
||
121 | * @param IoInterface $inOut |
||
122 | * @param ContainerInterface $container |
||
123 | * |
||
124 | * @return void |
||
125 | * |
||
126 | * @throws ContainerExceptionInterface |
||
127 | * @throws NotFoundExceptionInterface |
||
128 | */ |
||
129 | 1 | protected function executeClear(IoInterface $inOut, ContainerInterface $container): void |
|
142 | |||
143 | /** |
||
144 | * @param IoInterface $inOut |
||
145 | * @param ContainerInterface $container |
||
146 | * |
||
147 | * @return void |
||
148 | * |
||
149 | * @throws ContainerExceptionInterface |
||
150 | * @throws NotFoundExceptionInterface |
||
151 | * |
||
152 | * @SuppressWarnings(PHPMD.StaticAccess) |
||
153 | */ |
||
154 | 1 | protected function executeCache(IoInterface $inOut, ContainerInterface $container): void |
|
177 | |||
178 | /** |
||
179 | * @param ContainerInterface $container |
||
180 | * |
||
181 | * @return array |
||
182 | * |
||
183 | * @throws ContainerExceptionInterface |
||
184 | * @throws NotFoundExceptionInterface |
||
185 | */ |
||
186 | 2 | protected function getTemplatesSettings(ContainerInterface $container): array |
|
192 | } |
||
193 |