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

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. ));
  40. $gen->run();