1 | <?php |
||
10 | class ForbiddenFiles extends ActionAbstract |
||
11 | { |
||
12 | /** |
||
13 | * @var FileList |
||
14 | */ |
||
15 | protected $files; |
||
16 | |||
17 | /** @var string */ |
||
18 | protected $reason; |
||
19 | |||
20 | /** |
||
21 | * Will stop process if $files is not empty, for the reason specified in $reason. |
||
22 | * |
||
23 | * @param FileList $files |
||
24 | * @param string $reason |
||
25 | */ |
||
26 | 3 | public function __construct(FileList $files, $reason) |
|
31 | |||
32 | public function getName() |
||
33 | { |
||
34 | return 'Disallow files (ForbiddenFiles)'; |
||
35 | } |
||
36 | |||
37 | public function checkSupport() |
||
38 | { |
||
39 | // no special dependencies |
||
40 | } |
||
41 | |||
42 | 3 | public function execute(InputInterface $input, OutputInterface $output) |
|
56 | } |
||
57 |