-
Notifications
You must be signed in to change notification settings - Fork 2
/
bakery
36 lines (32 loc) · 1.39 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
36
#!/usr/bin/env php
<?php
/**
* _ _ ______ _ _
* | | | | | ___| | | (_)
* | | | |___ ___ _ __| |_ _ __ ___ ___| |_ _ _ __ __ _
* | | | / __|/ _ \ '__| _| '__/ _ \/ __| __| | '_ \ / _` |
* | |_| \__ \ __/ | | | | | | (_) \__ \ |_| | | | | (_| |
* \___/|___/\___|_| \_| |_| \___/|___/\__|_|_| |_|\__, |
* __/ |
* |___/
* UserFrosting (http://www.userfrosting.com)
*
* @link https://github.com/userfrosting/UserFrosting
* @copyright Copyright (c) 2013-2024 Alexander Weissman & Louis Charette
* @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__ . '/vendor/autoload.php')) {
die("ERROR :: File `".__DIR__."/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__ . '/vendor/autoload.php';
}
use UserFrosting\Bakery\Bakery;
use UserFrosting\Sprinkle\Blog\Database\Models\Blog;
/**
* Get and run CLI App
*/
$bakery = new Bakery(Blog::class);
$bakery->run();