diff options
author | Rob Loach <robloach@gmail.com> | 2015-02-07 22:05:07 -0500 |
---|---|---|
committer | Rob Loach <robloach@gmail.com> | 2015-02-07 22:05:07 -0500 |
commit | bc0f13b93a3b20f1640c75c9f28fe77b5a4c89ca (patch) | |
tree | 3530b776e0b69f6d7449a46224f46487ca576578 /src/GitDeploy/Console/Application.php | |
parent | 7ca89a5eb6c7993658c9efce339f6805a0ee8351 (diff) | |
download | git-deploy-0.0.4.zip git-deploy-0.0.4.tar.gz git-deploy-0.0.4.tar.bz2 |
Rename to Git Deploy0.0.4
Diffstat (limited to 'src/GitDeploy/Console/Application.php')
-rw-r--r-- | src/GitDeploy/Console/Application.php | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/GitDeploy/Console/Application.php b/src/GitDeploy/Console/Application.php new file mode 100644 index 0000000..0ba70c9 --- /dev/null +++ b/src/GitDeploy/Console/Application.php @@ -0,0 +1,24 @@ +<?php + +namespace GitDeploy\Console; + +use Symfony\Component\Console\Application as BaseApplication; +use GitDeploy\Console\Command\DeployCommand; + +class Application extends BaseApplication +{ + const NAME = 'Git Deploy'; + const VERSION = '@package_version@'; + + public function __construct() + { + parent::__construct(static::NAME, static::VERSION); + } + + protected function getDefaultCommands() + { + $defaultCommands = parent::getDefaultCommands(); + $defaultCommands[] = new DeployCommand(); + return $defaultCommands; + } +} |