1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- <?php
- /**
- * Created by PhpStorm.
- * User: robin
- * Date: 9/26/15
- * Time: 2:53 PM
- */
-
- use Luticate\Generator\LuGenerator;
-
- require_once('../vendor/autoload.php');
-
- Dotenv::load("..");
-
- $gen = new LuGenerator(getenv("DB_CONNECTION"), getenv("DB_DATABASE"), getenv("DB_HOST"),
- getenv("DB_PORT"), getenv("DB_USERNAME"), getenv("DB_PASSWORD"));
-
- $gen->run();
-
- $gen->setConfig(array("dbo" =>
- array(
- "namespace" => 'Luticate\Package\DBO',
- "folder" => 'generated/Package/DBO'
- ),
- "models" =>
- array(
- "namespace" => 'Luticate\Package\DataAccess\Models',
- "folder" => 'generated/Package/DataAccess/Models'
- ),
- "sp" =>
- array(
- "namespace" => 'ALuticate\Package\DataAccess\SP',
- "folder" => 'generated/Package/DataAccess/SP'
- ),
- "dataaccess" =>
- array(
- "namespace" => 'Luticate\Package\DataAccess',
- "folder" => 'generated/Package/DataAccess'
- ),
- "business" =>
- array(
- "namespace" => 'Luticate\Package\Business',
- "folder" => 'generated/Package/Business'
- ),
- "mode" => 0777
- ));
- $gen->run();
|