Skip to content

Commit

Permalink
OPENEUROPA-1535: Update code-review to master branch. Fix code accord…
Browse files Browse the repository at this point in the history
…ingly.
  • Loading branch information
drupol committed Jan 30, 2019
1 parent 7840ea8 commit 6767a62
Show file tree
Hide file tree
Showing 38 changed files with 822 additions and 821 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"jakeasmith/http_build_url": "^1.0.1"
},
"require-dev": {
"openeuropa/code-review": "^1.0.0-beta1",
"openeuropa/code-review": "dev-master",
"phpunit/phpunit": "~5.5||~6.0"
},
"autoload": {
Expand Down
35 changes: 18 additions & 17 deletions src/Commands/AbstractCommands.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types = 1);

namespace OpenEuropa\TaskRunner\Commands;

use Consolidation\AnnotatedCommand\AnnotationData;
Expand All @@ -15,15 +17,13 @@
use Symfony\Component\Console\Input\InputInterface;

/**
* Class AbstractCommands
*
* @package OpenEuropa\TaskRunner\Commands
* Class AbstractCommands.
*/
abstract class AbstractCommands implements BuilderAwareInterface, IOAwareInterface, ConfigAwareInterface
{
use ConfigAwareTrait;
use LoadAllTasks;
use IO;
use LoadAllTasks;

/**
* Path to YAML configuration file containing command defaults.
Expand All @@ -37,18 +37,6 @@ public function getConfigurationFile()
return __DIR__ . '/../../config/commands/base.yml';
}

/**
* Command initialization.
*
* @param \Symfony\Component\Console\Event\ConsoleCommandEvent $event
*
* @hook pre-command-event *
*/
public function initializeRuntimeConfiguration(ConsoleCommandEvent $event)
{
Robo::loadConfiguration([$this->getConfigurationFile()], $this->getConfig());
}

/**
* Returns an array of valueless options and their corresponding config key.
*
Expand All @@ -68,6 +56,18 @@ public function getValuelessConfigurationKeys()
return [];
}

/**
* Command initialization.
*
* @param \Symfony\Component\Console\Event\ConsoleCommandEvent $event
*
* @hook pre-command-event *
*/
public function initializeRuntimeConfiguration(ConsoleCommandEvent $event)
{
Robo::loadConfiguration([$this->getConfigurationFile()], $this->getConfig());
}

/**
* Initializes valueless options.
*
Expand Down Expand Up @@ -109,9 +109,10 @@ public function initializeValuelessOptions(InputInterface $input, AnnotationData

/**
* @param string $name
* @return string
*
* @throws TaskException
*
* @return string
*/
protected function getBin($name)
{
Expand Down
Loading

0 comments on commit 6767a62

Please sign in to comment.