Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

generate.php 1.3KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. use Luticate\Generator\LuGenerator;
  3. require_once('vendor/autoload.php');
  4. Dotenv::load(".");
  5. $gen = new LuGenerator(getenv("DB_CONNECTION"), getenv("DB_DATABASE"), getenv("DB_HOST"),
  6. getenv("DB_PORT"), getenv("DB_USERNAME"), getenv("DB_PASSWORD"));
  7. $gen->setConfig(array("dbo" =>
  8. array(
  9. "namespace" => 'App\Http\DBO',
  10. "folder" => 'app/Http/DBO'
  11. ),
  12. "models" =>
  13. array(
  14. "namespace" => 'App\Http\DataAccess\Models',
  15. "folder" => 'app/Http/DataAccess/Models'
  16. ),
  17. "sp" =>
  18. array(
  19. "namespace" => 'App\Http\DataAccess\SP',
  20. "folder" => 'app/Http/DataAccess/SP'
  21. ),
  22. "dataaccess" =>
  23. array(
  24. "namespace" => 'App\Http\DataAccess',
  25. "folder" => 'app/Http/DataAccess'
  26. ),
  27. "business" =>
  28. array(
  29. "namespace" => 'App\Http\Business',
  30. "folder" => 'app/Http/Business'
  31. ),
  32. "controller" =>
  33. array(
  34. "namespace" => 'App\Http\Controller',
  35. "folder" => 'app/Http/Controller'
  36. ),
  37. "mode" => 0775,
  38. "ignore" => array(
  39. "tables" => array(
  40. "/^luticate_.*/"
  41. ),
  42. "sp" => array(
  43. "/^sp_lu_.*/"
  44. ),
  45. "controllers" => array(
  46. "/^CameraTypesController$/"
  47. )
  48. )
  49. ));
  50. $gen->run();