Skip to content

Commit

Permalink
[console] Remove unused vars in feature trait. Fix #3686. (#3692)
Browse files Browse the repository at this point in the history
* Add validator of HTTP methods. Move list of http methods to separate method and add settings for it. Change twig template to generate the methods based on HTTP methods accrodingly

* Fix usage of variable and add extraction packages by bundle
  • Loading branch information
LOBsTerr authored and jmolivas committed Jan 17, 2018
1 parent 5fa51d1 commit dea5fee
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
7 changes: 3 additions & 4 deletions src/Command/Features/ImportCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,10 @@ protected function interact(InputInterface $input, OutputInterface $output)
{
$packages = $input->getArgument('packages');
$bundle = $input->getOption('bundle');

if (!$packages && !$bundle) {
if (!$packages) {
// @see Drupal\Console\Command\Shared\FeatureTrait::packageQuestion
$bundle = $this->packageQuestion();
$input->setArgument('packages', $bundle);
$package = $this->packageQuestion($bundle);
$input->setArgument('packages', $package);
}
}
}
2 changes: 1 addition & 1 deletion src/Command/Shared/FeatureTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
trait FeatureTrait
{
public function packageQuestion()
public function packageQuestion($bundle)
{
$packages = $this->getPackagesByBundle($bundle);

Expand Down

0 comments on commit dea5fee

Please sign in to comment.