You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

generate.php 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. )
  47. ));
  48. $gen->run();