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