Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

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. "/^EntityTypesController$/"
  47. )
  48. )
  49. ));
  50. $gen->run();