-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding deprecated file command notice
- Loading branch information
1 parent
4824041
commit ac80bb1
Showing
2 changed files
with
60 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
<?php | ||
/** | ||
* Magedownload CLI | ||
* | ||
* PHP version 5 | ||
* | ||
* @category MageDownload | ||
* @package MageDownload | ||
* @author Steve Robbins <steve@steverobbins.com> | ||
* @copyright 2015 Steve Robbins | ||
* @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 | ||
* @link https://github.com/steverobbins/magedownload-cli | ||
*/ | ||
|
||
namespace MageDownload\Command; | ||
|
||
use Symfony\Component\Console\Input\InputInterface; | ||
use Symfony\Component\Console\Output\OutputInterface; | ||
|
||
/** | ||
* Deprecated file command | ||
* | ||
* @category MageDownload | ||
* @package MageDownload | ||
* @author Steve Robbins <steve@steverobbins.com> | ||
* @copyright 2015 Steve Robbins | ||
* @license http://creativecommons.org/licenses/by/4.0/ CC BY 4.0 | ||
* @link https://github.com/steverobbins/magedownload-cli | ||
*/ | ||
class FileCommand extends DownloadCommand | ||
{ | ||
const NAME = 'file'; | ||
|
||
/** | ||
* Configure command | ||
* | ||
* @return void | ||
*/ | ||
protected function configure() | ||
{ | ||
parent::configure(); | ||
$this->setName(self::NAME); | ||
} | ||
|
||
/** | ||
* Execute command | ||
* | ||
* @param InputInterface $input | ||
* @param OutputInterface $output | ||
* | ||
* @return void | ||
*/ | ||
protected function execute(InputInterface $input, OutputInterface $output) | ||
{ | ||
$output->writeln('<error>The "file" command is deprecated. Please use "download" instead.</error>'); | ||
return parent::execute($input, $output); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters