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.2KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: robin
  5. * Date: 9/26/15
  6. * Time: 2:53 PM
  7. */
  8. use Luticate\Generator\LuGenerator;
  9. require_once('../vendor/autoload.php');
  10. Dotenv::load("..");
  11. $gen = new LuGenerator();
  12. echo "\n\nDEFAULT\n\n";
  13. $gen->run();
  14. $gen->setConfig(array("dbo" =>
  15. array(
  16. "namespace" => 'Luticate\Package\DBO',
  17. "folder" => 'generated/Package/DBO'
  18. ),
  19. "models" =>
  20. array(
  21. "namespace" => 'Luticate\Package\DataAccess\Models',
  22. "folder" => 'generated/Package/DataAccess/Models'
  23. ),
  24. "sp" =>
  25. array(
  26. "namespace" => 'ALuticate\Package\DataAccess\SP',
  27. "folder" => 'generated/Package/DataAccess/SP'
  28. ),
  29. "dataaccess" =>
  30. array(
  31. "namespace" => 'Luticate\Package\DataAccess',
  32. "folder" => 'generated/Package/DataAccess'
  33. ),
  34. "business" =>
  35. array(
  36. "namespace" => 'Luticate\Package\Business',
  37. "folder" => 'generated/Package/Business'
  38. ),
  39. "mode" => 0777,
  40. "ignore" => array(
  41. "tables" => array(
  42. "/luticate_users_groups/"
  43. ),
  44. "sp" => array(
  45. "/^sp_lu_get/"
  46. )
  47. )
  48. ));
  49. echo "\n\nCONFIG\n\n";
  50. $gen->run();