Skip to content

Commit

Permalink
refactor: replace deprecated execute() with generateClass()
Browse files Browse the repository at this point in the history
  • Loading branch information
kenjis committed Oct 29, 2023
1 parent 6a97a03 commit 1b6818f
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion system/Commands/Generators/CommandGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function run(array $params)
$this->template = 'command.tpl.php';

$this->classNameLang = 'CLI.generator.className.command';
$this->execute($params);
$this->generateClass($params);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion system/Commands/Generators/ConfigGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function run(array $params)
$this->template = 'config.tpl.php';

$this->classNameLang = 'CLI.generator.className.config';
$this->execute($params);
$this->generateClass($params);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion system/Commands/Generators/ControllerGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ public function run(array $params)
$this->template = 'controller.tpl.php';

$this->classNameLang = 'CLI.generator.className.controller';
$this->execute($params);
$this->generateClass($params);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion system/Commands/Generators/EntityGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ public function run(array $params)
$this->template = 'entity.tpl.php';

$this->classNameLang = 'CLI.generator.className.entity';
$this->execute($params);
$this->generateClass($params);
}
}
2 changes: 1 addition & 1 deletion system/Commands/Generators/FilterGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ public function run(array $params)
$this->template = 'filter.tpl.php';

$this->classNameLang = 'CLI.generator.className.filter';
$this->execute($params);
$this->generateClass($params);
}
}
2 changes: 1 addition & 1 deletion system/Commands/Generators/MigrationGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public function run(array $params)
}

$this->classNameLang = 'CLI.generator.className.migration';
$this->execute($params);
$this->generateClass($params);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion system/Commands/Generators/ModelGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public function run(array $params)
$this->template = 'model.tpl.php';

$this->classNameLang = 'CLI.generator.className.model';
$this->execute($params);
$this->generateClass($params);
}

/**
Expand Down
2 changes: 1 addition & 1 deletion system/Commands/Generators/SeederGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ public function run(array $params)
$this->template = 'seeder.tpl.php';

$this->classNameLang = 'CLI.generator.className.seeder';
$this->execute($params);
$this->generateClass($params);
}
}
2 changes: 1 addition & 1 deletion system/Commands/Generators/ValidationGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,6 @@ public function run(array $params)
$this->template = 'validation.tpl.php';

$this->classNameLang = 'CLI.generator.className.validation';
$this->execute($params);
$this->generateClass($params);
}
}
2 changes: 1 addition & 1 deletion tests/_support/Commands/LanguageCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public function run(array $params): void
$sort = (isset($params['sort']) && $params['sort'] === 'off') ? false : true;
$this->setSortImports($sort);

$this->execute($params);
$this->generateClass($params);
}

protected function prepare(string $class): string
Expand Down
2 changes: 1 addition & 1 deletion tests/_support/Commands/Unsuffixable.php
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,6 @@ public function run(array $params): void
$this->template = 'command.tpl.php';

$this->setEnabledSuffixing(false);
$this->execute($params);
$this->generateClass($params);
}
}

0 comments on commit 1b6818f

Please sign in to comment.