Skip to content

Commit

Permalink
[generate:ajax:command] Update Generator to implement GeneratorInterf…
Browse files Browse the repository at this point in the history
…ace. (#3721)
  • Loading branch information
jmolivas authored Jan 22, 2018
1 parent edd12a9 commit c9d2e62
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/Generator/AjaxCommandGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,23 @@
namespace Drupal\Console\Generator;

use Drupal\Console\Core\Generator\Generator;
use Drupal\Console\Core\Generator\GeneratorInterface;
use Drupal\Console\Extension\Manager;

/**
* Class AjaxCommandGenerator
*
* @package Drupal\Console\Generator
*/
class AjaxCommandGenerator extends Generator
class AjaxCommandGenerator extends Generator implements GeneratorInterface
{
/**
* @var Manager
*/
protected $extensionManager;

/**
* AuthenticationProviderGenerator constructor.
* AjaxCommandGenerator constructor.
*
* @param Manager $extensionManager
*/
Expand All @@ -34,9 +35,9 @@ public function __construct(
}

/**
* @param $parameters array
* {@inheritdoc}
*/
public function generate($parameters)
public function generate(array $parameters)
{
$class = $parameters['class_name'];
$module = $parameters['module'];
Expand Down

0 comments on commit c9d2e62

Please sign in to comment.