diff --git a/site/plugins/site/app/Controllers/SiteController.php b/site/plugins/site/app/Controllers/SiteController.php index 159ac121..0805495d 100644 --- a/site/plugins/site/app/Controllers/SiteController.php +++ b/site/plugins/site/app/Controllers/SiteController.php @@ -1,5 +1,15 @@ + * @link http://romanenko.digital + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flextype; use Flextype\Component\Arr\Arr; diff --git a/site/plugins/site/bootstrap.php b/site/plugins/site/bootstrap.php index a59a1990..1c744dd1 100644 --- a/site/plugins/site/bootstrap.php +++ b/site/plugins/site/bootstrap.php @@ -1,15 +1,39 @@ + * @link http://romanenko.digital + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flextype; -// Ensure vendor libraries exist -!is_file($autoload = __DIR__ . '/vendor/autoload.php') and exit("Please run: composer install"); +/** + * Ensure vendor libraries exist + */ +!is_file($site_autoload = __DIR__ . '/vendor/autoload.php') and exit("Please run: composer install"); -// Register The Auto Loader -$loader = require_once $autoload; +/** + * 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 + */ +$site_loader = require_once $site_autoload; -// Include routes +/** + * Include web routes + */ include_once 'routes/web.php'; -// Include dependencies +/** + * Include dependencies + */ include_once 'dependencies.php'; diff --git a/site/plugins/site/dependencies.php b/site/plugins/site/dependencies.php index 887ccc6a..4579874f 100644 --- a/site/plugins/site/dependencies.php +++ b/site/plugins/site/dependencies.php @@ -1,5 +1,15 @@ + * @link http://romanenko.digital + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flextype; /** diff --git a/site/plugins/site/routes/web.php b/site/plugins/site/routes/web.php index 094152c0..ce717f23 100644 --- a/site/plugins/site/routes/web.php +++ b/site/plugins/site/routes/web.php @@ -1,5 +1,15 @@ + * @link http://romanenko.digital + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + namespace Flextype; $app->get('{uri:.+}', 'SiteController:index')->setName('site.index');