Skip to content

Commit

Permalink
Use interfaces for DI. (#3546)
Browse files Browse the repository at this point in the history
  • Loading branch information
dpagini authored and jmolivas committed Oct 28, 2017
1 parent 051c2d8 commit 4a3e432
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions src/Command/Module/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Utils\Site;
use Drupal\Console\Utils\Validator;
use Drupal\Core\ProxyClass\Extension\ModuleInstaller;
use Drupal\Core\Extension\ModuleInstallerInterface;
use Drupal\Console\Utils\DrupalApi;
use Drupal\Console\Extension\Manager;
use Drupal\Console\Core\Utils\ChainQueue;
Expand Down Expand Up @@ -82,7 +82,7 @@ class InstallCommand extends Command
public function __construct(
Site $site,
Validator $validator,
ModuleInstaller $moduleInstaller,
ModuleInstallerInterface $moduleInstaller,
DrupalApi $drupalApi,
Manager $extensionManager,
$appRoot,
Expand Down
8 changes: 4 additions & 4 deletions src/Command/Module/UninstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
use Drupal\Console\Command\Shared\ProjectDownloadTrait;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Utils\Site;
use Drupal\Core\ProxyClass\Extension\ModuleInstaller;
use Drupal\Core\Extension\ModuleInstallerInterface;
use Drupal\Console\Core\Utils\ChainQueue;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Config\ConfigFactoryInterface;

class UninstallCommand extends Command
{
Expand Down Expand Up @@ -60,9 +60,9 @@ class UninstallCommand extends Command
*/
public function __construct(
Site $site,
ModuleInstaller $moduleInstaller,
ModuleInstallerInterface $moduleInstaller,
ChainQueue $chainQueue,
ConfigFactory $configFactory,
ConfigFactoryInterface $configFactory,
Manager $extensionManager
) {
$this->site = $site;
Expand Down
8 changes: 4 additions & 4 deletions src/Command/Theme/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Extension\ThemeHandler;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Drupal\Core\Config\UnmetDependenciesException;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Core\Utils\ChainQueue;
Expand Down Expand Up @@ -43,8 +43,8 @@ class InstallCommand extends Command
* @param ChainQueue $chainQueue
*/
public function __construct(
ConfigFactory $configFactory,
ThemeHandler $themeHandler,
ConfigFactoryInterface $configFactory,
ThemeHandlerInterface $themeHandler,
ChainQueue $chainQueue
) {
$this->configFactory = $configFactory;
Expand Down
8 changes: 4 additions & 4 deletions src/Command/Theme/UninstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;
use Drupal\Console\Core\Command\Command;
use Drupal\Core\Config\ConfigFactory;
use Drupal\Core\Extension\ThemeHandler;
use Drupal\Core\Config\ConfigFactoryInterface;
use Drupal\Core\Extension\ThemeHandlerInterface;
use Drupal\Core\Config\UnmetDependenciesException;
use Drupal\Console\Core\Style\DrupalStyle;
use Drupal\Console\Core\Utils\ChainQueue;
Expand Down Expand Up @@ -42,8 +42,8 @@ class UninstallCommand extends Command
* @param ChainQueue $chainQueue
*/
public function __construct(
ConfigFactory $configFactory,
ThemeHandler $themeHandler,
ConfigFactoryInterface $configFactory,
ThemeHandlerInterface $themeHandler,
ChainQueue $chainQueue
) {
$this->configFactory = $configFactory;
Expand Down

0 comments on commit 4a3e432

Please sign in to comment.