Generators.php 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. namespace Config;
  3. use CodeIgniter\Config\BaseConfig;
  4. class Generators extends BaseConfig
  5. {
  6. /**
  7. * --------------------------------------------------------------------------
  8. * Generator Commands' Views
  9. * --------------------------------------------------------------------------
  10. *
  11. * This array defines the mapping of generator commands to the view files
  12. * they are using. If you need to customize them for your own, copy these
  13. * view files in your own folder and indicate the location here.
  14. *
  15. * You will notice that the views have special placeholders enclosed in
  16. * curly braces `{...}`. These placeholders are used internally by the
  17. * generator commands in processing replacements, thus you are warned
  18. * not to delete them or modify the names. If you will do so, you may
  19. * end up disrupting the scaffolding process and throw errors.
  20. *
  21. * YOU HAVE BEEN WARNED!
  22. *
  23. * @var array<string, array<string, string>|string>
  24. */
  25. public array $views = [
  26. 'make:cell' => [
  27. 'class' => 'CodeIgniter\Commands\Generators\Views\cell.tpl.php',
  28. 'view' => 'CodeIgniter\Commands\Generators\Views\cell_view.tpl.php',
  29. ],
  30. 'make:command' => 'CodeIgniter\Commands\Generators\Views\command.tpl.php',
  31. 'make:config' => 'CodeIgniter\Commands\Generators\Views\config.tpl.php',
  32. 'make:controller' => 'CodeIgniter\Commands\Generators\Views\controller.tpl.php',
  33. 'make:entity' => 'CodeIgniter\Commands\Generators\Views\entity.tpl.php',
  34. 'make:filter' => 'CodeIgniter\Commands\Generators\Views\filter.tpl.php',
  35. 'make:migration' => 'CodeIgniter\Commands\Generators\Views\migration.tpl.php',
  36. 'make:model' => 'CodeIgniter\Commands\Generators\Views\model.tpl.php',
  37. 'make:seeder' => 'CodeIgniter\Commands\Generators\Views\seeder.tpl.php',
  38. 'make:validation' => 'CodeIgniter\Commands\Generators\Views\validation.tpl.php',
  39. 'session:migration' => 'CodeIgniter\Commands\Generators\Views\migration.tpl.php',
  40. ];
  41. }