Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

generate.php 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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(getenv("DB_CONNECTION"), getenv("DB_DATABASE"), getenv("DB_HOST"),
  12. getenv("DB_PORT"), getenv("DB_USERNAME"), getenv("DB_PASSWORD"));
  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. ));
  41. $gen->run();