Skip to content

Commit

Permalink
Rename drush generator generator so it doesnt appear on command list (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
weitzman authored Mar 13, 2024
1 parent c14ce39 commit c119ca4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Commands/generate/ApplicationFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
use DrupalCodeGenerator\Event\GeneratorInfoAlter;
use Drush\Commands\generate\Generators\Drush\DrushAliasFile;
use Drush\Commands\generate\Generators\Drush\DrushCommandFile;
use Drush\Commands\generate\Generators\Drush\DrushGenerator;
use Drush\Commands\generate\Generators\Drush\DrushGeneratorFile;
use Drush\Runtime\ServiceManager;
use Psr\Container\ContainerInterface;
use Psr\Container\ContainerInterface as DrushContainer;
Expand Down Expand Up @@ -64,7 +64,7 @@ public function discover(): array
$generators = [
new DrushCommandFile(),
new DrushAliasFile(),
new DrushGenerator(),
new DrushGeneratorFile(),
...$global_generators,
...$module_generators,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
templatePath: __DIR__,
type: GeneratorType::MODULE_COMPONENT,
)]
class DrushGenerator extends BaseGenerator
class DrushGeneratorFile extends BaseGenerator
{
protected function generate(array &$vars, Assets $assets): void
{
Expand Down

0 comments on commit c119ca4

Please sign in to comment.