Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

generate.php 1.4KB

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