forked from userfrosting/UserFrosting
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bakery
35 lines (31 loc) · 1.33 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
35
#!/usr/bin/env php
<?php
/**
* _ _ ______ _ _
* | | | | | ___| | | (_)
* | | | |___ ___ _ __| |_ _ __ ___ ___| |_ _ _ __ __ _
* | | | / __|/ _ \ '__| _| '__/ _ \/ __| __| | '_ \ / _` |
* | |_| \__ \ __/ | | | | | | (_) \__ \ |_| | | | | (_| |
* \___/|___/\___|_| \_| |_| \___/|___/\__|_|_| |_|\__, |
* __/ |
* |___/
* UserFrosting (http://www.userfrosting.com)
*
* @link https://github.com/userfrosting/UserFrosting
* @copyright Copyright (c) 2019 Alexander Weissman
* @license https://github.com/userfrosting/UserFrosting/blob/master/LICENSE.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();