blob: 0ba70c9e498cca39c6d60c677fe753ad80c5947d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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;
}
}
|