forked from userfrosting/UserFrosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bakery
34 lines (30 loc) · 1.27 KB
/
bakery
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
#!/usr/bin/env php
<?php
/**
* _ _ ______ _ _
* | | | | | ___| | | (_)
* | | | |___ ___ _ __| |_ _ __ ___ ___| |_ _ _ __ __ _
* | | | / __|/ _ \ '__| _| '__/ _ \/ __| __| | '_ \ / _` |
* | |_| \__ \ __/ | | | | | | (_) \__ \ |_| | | | | (_| |
* \___/|___/\___|_| \_| |_| \___/|___/\__|_|_| |_|\__, |
* __/ |
* |___/
* http://www.userfrosting.com
*
* @link https://github.com/userfrosting/UserFrosting
* @license https://github.com/userfrosting/UserFrosting/blob/master/licenses/UserFrosting.md (MIT License)
*/
/**
* Require composer autoload file. Not having this file means Composer might not be installed / run
*/
if (!file_exists(__DIR__ . '/app/vendor/autoload.php')) {
die("ERROR :: File `".__DIR__."/app/vendor/autoload.php` not found. This indicate that composer has not yet been run on this install. Install composer and run `composer install` from the project root directory. Check the documentation for more details.\n");
} else {
require_once __DIR__ . '/app/vendor/autoload.php';
}
use UserFrosting\System\Bakery\Bakery;
/**
* Get and run CLI App
*/
$bakery = new Bakery();
$bakery->run();