1 | <?php |
||
32 | abstract class Purge extends Action |
||
33 | { |
||
34 | /** |
||
35 | * @var ManagerInterface |
||
36 | */ |
||
37 | protected $messageManager; |
||
38 | |||
39 | /** |
||
40 | * @var DirectoryList |
||
41 | */ |
||
42 | protected $directoryList; |
||
43 | |||
44 | /** |
||
45 | * @var VarnishActionManagerInterface |
||
46 | */ |
||
47 | protected $varnishActionManager; |
||
48 | |||
49 | /** |
||
50 | * @var QueueProgressLoggerInterface |
||
51 | */ |
||
52 | protected $queueProgressLogger; |
||
53 | |||
54 | /** |
||
55 | * @var ProgressBarRendererInterface |
||
56 | */ |
||
57 | protected $queueProgressBarRenderer; |
||
58 | |||
59 | /** |
||
60 | * @var Factory |
||
61 | */ |
||
62 | private $messageFactory; |
||
63 | |||
64 | /** |
||
65 | * Purge constructor. |
||
66 | * @param Context $context |
||
67 | * @param DirectoryList $directoryList |
||
68 | * @param VarnishActionManagerInterface $varnishActionManager |
||
69 | * @param QueueProgressLoggerInterface $queueProgressLogger |
||
70 | * @param ProgressBarRendererInterface $queueProgressBarRenderer |
||
71 | * @param Factory $messageFactory |
||
72 | * @SuppressWarnings(PHPMD.LongVariable) |
||
73 | */ |
||
74 | public function __construct( |
||
90 | |||
91 | /** |
||
92 | * @return Redirect |
||
93 | */ |
||
94 | public function execute(): Redirect |
||
105 | |||
106 | /** |
||
107 | * @return string |
||
108 | */ |
||
109 | abstract protected function getCliCommand(): string; |
||
110 | |||
111 | /** |
||
112 | * @return Redirect |
||
113 | */ |
||
114 | protected function getRedirect(): Redirect |
||
120 | |||
121 | /** |
||
122 | * @return void |
||
123 | */ |
||
124 | protected function addProcessNotification(): void |
||
128 | |||
129 | /** |
||
130 | * @return void |
||
131 | */ |
||
132 | protected function addProcessLockWarning(): void |
||
149 | |||
150 | /** |
||
151 | * @return void |
||
152 | */ |
||
153 | protected function runCommand(): void |
||
161 | |||
162 | /** |
||
163 | * @return bool |
||
164 | */ |
||
165 | protected function isLocked(): bool |
||
169 | |||
170 | /** |
||
171 | * @return string |
||
172 | */ |
||
173 | protected function getAdditionalParams(): string |
||
183 | } |
||
184 |