1 | <?php |
||
10 | class LockCommand extends AbstractAdminUserCommand |
||
11 | { |
||
12 | /** |
||
13 | * The number of days to lock for (by default) |
||
14 | * @var int |
||
15 | */ |
||
16 | const LIFETIME_DEFAULT = 31; |
||
17 | |||
18 | /** |
||
19 | * Setup |
||
20 | * |
||
21 | * @return void |
||
22 | */ |
||
23 | protected function configure() |
||
35 | |||
36 | /** |
||
37 | * @return bool |
||
38 | */ |
||
39 | public function isEnabled() |
||
43 | |||
44 | /** |
||
45 | * @param InputInterface $input |
||
46 | * @param OutputInterface $output |
||
47 | * |
||
48 | * @return void |
||
49 | */ |
||
50 | protected function execute(InputInterface $input, OutputInterface $output) |
||
77 | |||
78 | /** |
||
79 | * Convert a number of days to seconds for the lock lifetime parameter |
||
80 | * |
||
81 | * @param int $days |
||
82 | * @return int Seconds |
||
83 | */ |
||
84 | public function daysToSeconds($days) |
||
88 | } |
||
89 |