Completed
Push — dev ( 482404...ac80bb )
by Steve
12:31
created

FileCommand::execute()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
c 3
b 0
f 0
dl 0
loc 5
rs 9.4286
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
/**
3
 * Magedownload CLI
4
 *
5
 * PHP version 5
6
 *
7
 * @category  MageDownload
8
 * @package   MageDownload
9
 * @author    Steve Robbins <[email protected]>
10
 * @copyright 2015 Steve Robbins
11
 * @license   http://creativecommons.org/licenses/by/4.0/ CC BY 4.0
12
 * @link      https://github.com/steverobbins/magedownload-cli
13
 */
14
15
namespace MageDownload\Command;
16
17
use Symfony\Component\Console\Input\InputInterface;
18
use Symfony\Component\Console\Output\OutputInterface;
19
20
/**
21
 * Deprecated file command
22
 *
23
 * @category  MageDownload
24
 * @package   MageDownload
25
 * @author    Steve Robbins <[email protected]>
26
 * @copyright 2015 Steve Robbins
27
 * @license   http://creativecommons.org/licenses/by/4.0/ CC BY 4.0
28
 * @link      https://github.com/steverobbins/magedownload-cli
29
 */
30
class FileCommand extends DownloadCommand
31
{
32
    const NAME = 'file';
33
34
    /**
35
     * Configure command
36
     *
37
     * @return void
38
     */
39
    protected function configure()
40
    {
41
        parent::configure();
42
        $this->setName(self::NAME);
43
    }
44
45
    /**
46
     * Execute command
47
     *
48
     * @param InputInterface  $input
49
     * @param OutputInterface $output
50
     *
51
     * @return void
52
     */
53
    protected function execute(InputInterface $input, OutputInterface $output)
54
    {
55
        $output->writeln('<error>The "file" command is deprecated. Please use "download" instead.</error>');
56
        return parent::execute($input, $output);
57
    }
58
}
59