Skip to content

Commit

Permalink
[console] Remove un-usued createGenerator legacy method. (#3725)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmolivas authored Jan 22, 2018
1 parent 82df098 commit b48099c
Show file tree
Hide file tree
Showing 9 changed files with 0 additions and 59 deletions.
8 changes: 0 additions & 8 deletions src/Command/Generate/ControllerCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,12 +297,4 @@ function ($path) use ($routes) {
$services = $this->servicesQuestion();
$input->setOption('services', $services);
}

/**
* @return \Drupal\Console\Generator\ControllerGenerator
*/
protected function createGenerator()
{
return new ControllerGenerator();
}
}
5 changes: 0 additions & 5 deletions src/Command/Generate/FormAlterCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -284,11 +284,6 @@ public function explodeInlineArray($inlineInputs)
return $inputs;
}

protected function createGenerator()
{
return new FormAlterGenerator();
}

public function getWebprofilerForms()
{
$tokens = $this->profiler->find(null, null, 1000, null, '', '');
Expand Down
8 changes: 0 additions & 8 deletions src/Command/Generate/JsTestCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -123,12 +123,4 @@ function ($class) {
$input->setOption('class', $class);
}
}

/**
* @return \Drupal\Console\Generator\JsTestGenerator
*/
protected function createGenerator()
{
return new JsTestGenerator();
}
}
8 changes: 0 additions & 8 deletions src/Command/Generate/ModuleCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,12 +393,4 @@ function ($core) {
$input->setOption('twigtemplate', $twigtemplate);
}
}

/**
* @return ModuleGenerator
*/
protected function createGenerator()
{
return new ModuleGenerator();
}
}
5 changes: 0 additions & 5 deletions src/Command/Generate/PluginViewsFieldCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -181,9 +181,4 @@ function ($class_name) {
$input->setOption('description', $description);
}
}

protected function createGenerator()
{
return new PluginViewsFieldGenerator();
}
}
6 changes: 0 additions & 6 deletions src/Command/Generate/PostUpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,12 +142,6 @@ function ($postUpdateName) {
}
}


protected function createGenerator()
{
return new PostUpdateGenerator();
}

protected function getLastUpdate($module)
{
$this->site->loadLegacyFile('/core/includes/update.inc');
Expand Down
8 changes: 0 additions & 8 deletions src/Command/Generate/ProfileCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -289,12 +289,4 @@ function ($profile_path) use ($machine_name) {
}
}
}

/**
* @return ProfileGenerator
*/
protected function createGenerator()
{
return new ProfileGenerator();
}
}
5 changes: 0 additions & 5 deletions src/Command/Generate/RouteSubscriberCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -150,9 +150,4 @@ function ($class) {
$input->setOption('class', $class);
}
}

protected function createGenerator()
{
return new RouteSubscriberGenerator();
}
}
6 changes: 0 additions & 6 deletions src/Command/Generate/UpdateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,6 @@ function ($updateNumber) use ($lastUpdateSchema) {
}
}


protected function createGenerator()
{
return new UpdateGenerator();
}

protected function getLastUpdate($module)
{
$this->site->loadLegacyFile('/core/includes/update.inc');
Expand Down

0 comments on commit b48099c

Please sign in to comment.