add Yii2 project type to dep init

This commit is contained in:
root 2017-04-05 19:59:35 +00:00
parent c3a5c2481d
commit 81ac3d9c21
4 changed files with 49 additions and 0 deletions

View File

@ -4,6 +4,7 @@
[v4.3.0...master](https://github.com/deployphp/deployer/compare/v4.3.0...master)
### Added
- Added console init template for Yii2 basic and advanced receipe [#1146](https://github.com/deployphp/deployer/pull/1146)
- Added `use_atomic_symlink` and `use_relative_symlink` option [14a8f8](https://github.com/deployphp/deployer/pull/1092/commits/14a8f8f9c4ebbc7da45c2b6b7c3c00a51b563ccf)
- Added `Ssh\Client` [#1092](https://github.com/deployphp/deployer/pull/1092)
- Added host ranges [#1092](https://github.com/deployphp/deployer/pull/1092)

View File

@ -15,6 +15,8 @@ use Deployer\Initializer\Template\DrupalTemplate;
use Deployer\Initializer\Template\LaravelTemplate;
use Deployer\Initializer\Template\SymfonyTemplate;
use Deployer\Initializer\Template\YiiTemplate;
use Deployer\Initializer\Template\Yii2BasicAppTemplate;
use Deployer\Initializer\Template\Yii2AdvancedAppTemplate;
use Deployer\Initializer\Template\ZendTemplate;
use Symfony\Component\Console\Command\Command;
use Symfony\Component\Console\Input\InputInterface;
@ -107,6 +109,8 @@ class InitCommand extends Command
$initializer->addTemplate('Laravel', new LaravelTemplate());
$initializer->addTemplate('Symfony', new SymfonyTemplate());
$initializer->addTemplate('Yii', new YiiTemplate());
$initializer->addTemplate('Yii2 Basic App', new Yii2BasicAppTemplate());
$initializer->addTemplate('Yii2 Advanced App', new Yii2AdvancedAppTemplate());
$initializer->addTemplate('Zend Framework', new ZendTemplate());
$initializer->addTemplate('CakePHP', new CakeTemplate());
$initializer->addTemplate('CodeIgniter', new CodeIgniterTemplate());

View File

@ -0,0 +1,22 @@
<?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer\Initializer\Template;
/**
* Generate a Yii deployer configuration.
*
* @author Anton Medvedev <anton@medv.io>
* @codeCoverageIgnore
*/
class Yii2AdvancedAppTemplate extends FrameworkTemplate
{
protected function getRecipe()
{
return 'yii2-app-advanced';
}
}

View File

@ -0,0 +1,22 @@
<?php
/* (c) Anton Medvedev <anton@medv.io>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Deployer\Initializer\Template;
/**
* Generate a Yii2 app basic deployer configuration.
*
* @author Anton Medvedev <anton@medv.io>
* @codeCoverageIgnore
*/
class Yii2BasicAppTemplate extends FrameworkTemplate
{
protected function getRecipe()
{
return 'yii2-app-basic';
}
}