-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbow
executable file
·39 lines (32 loc) · 813 Bytes
/
bow
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env php
<?php
require __DIR__."/vendor/autoload.php";
/**
* Make kernel instance
*/
$kernel = \App\Kernel::configure(__DIR__.'/config');
/**
* Create command instance and set filename
*/
$command = new \Bow\Console\Command(__DIR__);
$command->setNamespaces($kernel->namespaces());
/**
* Change preset destination
*/
$command->setModelDirectory(__DIR__.'/app/Model');
$command->setValidationDirectory(__DIR__.'/app/Validation');
$command->setConfigurationDirectory(__DIR__.'/app/Configuration');
$command->setControllerDirectory(__DIR__.'/app/Controller');
$command->setComponentDirectory(__DIR__.'/frontend');
/**
* Create console instance
*/
$console = new \Bow\Console\Bow($command);
/**
* Bind kernel to console
*/
$console->bind($kernel);
/**
* Start console
*/
$console->run();