mirror of
https://github.com/flextype/flextype.git
synced 2025-01-16 20:28:17 +01:00
47 lines
1.4 KiB
PHP
Executable File
47 lines
1.4 KiB
PHP
Executable File
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* Flextype - Hybrid Content Management System with the freedom of a headless CMS
|
|
* and with the full functionality of a traditional CMS!
|
|
*
|
|
* Copyright (c) Sergey Romanenko (https://awilum.github.io)
|
|
*
|
|
* Licensed under The MIT License.
|
|
*
|
|
* For full copyright and license information, please see the LICENSE
|
|
* Redistributions of files must retain the above copyright notice.
|
|
*/
|
|
|
|
namespace Flextype;
|
|
|
|
use function getcwd;
|
|
use function is_file;
|
|
use function str_replace;
|
|
|
|
/**
|
|
* Ensure vendor libraries exist
|
|
*/
|
|
! is_file($flextypeAutoload = str_replace(DIRECTORY_SEPARATOR, '/', getcwd()) . '/vendor/autoload.php') and exit('Please run: <i>composer install</i> for flextype');
|
|
|
|
/**
|
|
* Register The Auto Loader
|
|
*
|
|
* Composer provides a convenient, automatically generated class loader for
|
|
* our application. We just need to utilize it! We'll simply require it
|
|
* into the script here so that we don't have to worry about manual
|
|
* loading any of our classes later on. It feels nice to relax.
|
|
* Register The Auto Loader
|
|
*/
|
|
$flextypeLoader = require_once $flextypeAutoload;
|
|
|
|
/**
|
|
* Bootstraps the Flextype
|
|
*
|
|
* This bootstraps the Flextype and gets it ready for use, then it
|
|
* will load up this application so that we can run it and send
|
|
* the responses back to the browser and delight our users.
|
|
*/
|
|
require_once __DIR__ . '/src/flextype/flextype.php';
|