diff options
Diffstat (limited to 'main/bakery')
-rwxr-xr-x | main/bakery | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/main/bakery b/main/bakery new file mode 100755 index 0000000..4d0348d --- /dev/null +++ b/main/bakery @@ -0,0 +1,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();
\ No newline at end of file |