Skip to content

Commit

Permalink
Added the extensionManager. (#3225)
Browse files Browse the repository at this point in the history
  • Loading branch information
francescopersico authored and jmolivas committed Mar 15, 2017
1 parent 4cc52d2 commit fb8e159
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/services/drupal-console/module.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ services:
- { name: drupal.command }
module_uninstall:
class: Drupal\Console\Command\Module\UninstallCommand
arguments: ['@console.site','@module_installer', '@console.chain_queue', '@config.factory']
arguments: ['@console.site','@module_installer', '@console.chain_queue', '@config.factory', '@console.extension_manager']
tags:
- { name: drupal.command }
module_update:
Expand Down
11 changes: 10 additions & 1 deletion src/Command/Module/UninstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
namespace Drupal\Console\Command\Module;

use Drupal\Console\Core\Command\Shared\CommandTrait;
use Drupal\Console\Extension\Manager;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Input\InputOption;
Expand Down Expand Up @@ -46,6 +47,11 @@ class UninstallCommand extends Command
*/
protected $configFactory;

/**
* @var Manager
*/
protected $extensionManager;


/**
* InstallCommand constructor.
Expand All @@ -54,17 +60,20 @@ class UninstallCommand extends Command
* @param Validator $validator
* @param ChainQueue $chainQueue
* @param ConfigFactory $configFactory
* @param Manager $extensionManager
*/
public function __construct(
Site $site,
ModuleInstaller $moduleInstaller,
ChainQueue $chainQueue,
ConfigFactory $configFactory
ConfigFactory $configFactory,
Manager $extensionManager
) {
$this->site = $site;
$this->moduleInstaller = $moduleInstaller;
$this->chainQueue = $chainQueue;
$this->configFactory = $configFactory;
$this->extensionManager = $extensionManager;
parent::__construct();
}

Expand Down

0 comments on commit fb8e159

Please sign in to comment.