1 | <?php |
||
19 | class ProposeUpdateCommand extends ContainerAwareCommand |
||
20 | { |
||
21 | /** |
||
22 | * Interval offers updates. |
||
23 | * |
||
24 | * 30 days |
||
25 | * |
||
26 | * @var int |
||
27 | */ |
||
28 | const INERVAL_UPDATE = 2592000; |
||
29 | |||
30 | /** |
||
31 | * Interval notification. |
||
32 | * |
||
33 | * 5 days |
||
34 | * |
||
35 | * @var int |
||
36 | */ |
||
37 | const INERVAL_NOTIFICATION = 432000; |
||
38 | |||
39 | protected function configure() |
||
40 | { |
||
41 | $this->setName('animedb:propose-update') |
||
42 | ->setDescription('Propose to update the application'); |
||
43 | } |
||
44 | |||
45 | /** |
||
46 | * @param InputInterface $input |
||
47 | * @param OutputInterface $output |
||
48 | * |
||
49 | * @return bool |
||
50 | */ |
||
51 | protected function execute(InputInterface $input, OutputInterface $output) |
||
78 | } |
||
79 |