freecms/fcms-core/freecms.php
2022-07-18 08:00:16 +03:00

29 lines
575 B
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/*
* Приложение FreeCMS.
* @package FreeCMS
*/
namespace freecms;
use Whoops\Handler\PrettyPageHandler;
use Whoops\Run;
/**
* Подключаем настройки
*/
require 'fcms-configs/config.php';
/**
* Подключаем автозагрузчик
*/
require './vendor/autoload.php';
/**
* Подключаем страницу с ошибками (только в режиме разработки)
*/
if (FCMS_ENVIRONMENT == 'dev') {
$whoops = new Run();
$whoops->pushHandler(new PrettyPageHandler());
$whoops->register();
}