Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

generate.php 1.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  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. "mode" => 0775,
  39. "ignore" => array(
  40. "tables" => array(
  41. "/luticate_users_groups/"
  42. ),
  43. "sp" => array()
  44. )
  45. ));
  46. $gen->run();