Skip to content

Commit

Permalink
fixed #701
Browse files Browse the repository at this point in the history
  • Loading branch information
oanhnn committed Jun 22, 2016
1 parent 897205a commit 81d8c4f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/Bootstrap/BootstrapByConfigFile.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,22 @@
namespace Deployer\Bootstrap;

use Deployer\Type\DotArray;
use Deployer\Cluster\ClusterBuilder;
use Deployer\Server\Builder;
use Symfony\Component\Yaml\Yaml;

/**
* @author Irfan Durmus (http://github.com/irfan) <irfandurmus@gmail.com>
* BootstrapByConfigFile
*
* Moved some initialization logic from src/functions.php to here, since
* putting application logic in public functions which callable without
* any restriction is not good.
*
* We do not need any inheritance or interface implementation here,
* it's just simple POPO class.
*
* @author Irfan Durmus (http://github.com/irfan) <irfandurmus@gmail.com>
*/
class BootstrapByConfigFile
{

/**
* @var string|null $configFile
*/
Expand All @@ -46,7 +45,7 @@ class BootstrapByConfigFile
public $serverConfig = [];

/**
* @var Deployer\Cluster\ClusterBuilder[] $clusterBuilders
* @var \Deployer\Cluster\ClusterBuilder[] $clusterBuilders
*/
public $clusterBuilders = [];

Expand All @@ -57,7 +56,7 @@ class BootstrapByConfigFile

/**
* @param \Deployer\Type\DotArray $config
* @param Builder|ClusterBuilder $builder
* @param \Deployer\Server\Builder|\Deployer\Cluster\ClusterBuilder $builder
*/
private function executeBuilderMethods(DotArray $config, $builder)
{
Expand Down

0 comments on commit 81d8c4f

Please sign in to comment.