Skip to content

Commit

Permalink
[console] Add base commands. (#211)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas committed Jul 28, 2017
1 parent fb16c78 commit affa772
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/Command/Command.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* @file
* Contains \Drupal\Console\Core\Command\Command.
*/

namespace Drupal\Console\Core\Command;

use Symfony\Component\Console\Command\Command as BaseCommand;
use Drupal\Console\Core\Command\Shared\CommandTrait;

/**
* Class Command
* @package Drupal\Console\Core\Command
*/
abstract class Command extends BaseCommand
{
use CommandTrait;
}
20 changes: 20 additions & 0 deletions src/Command/ContainerAwareCommand.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?php

/**
* @file
* Contains \Drupal\Console\Core\Command\ContainerAwareCommand.
*/

namespace Drupal\Console\Core\Command;

use Symfony\Component\Console\Command\Command as BaseCommand;
use Drupal\Console\Core\Command\Shared\ContainerAwareCommandTrait;

/**
* Class ContainerAwareCommand
* @package Drupal\Console\Core\Command
*/
abstract class ContainerAwareCommand extends BaseCommand
{
use ContainerAwareCommandTrait;
}

0 comments on commit affa772

Please sign in to comment.