mirror of
https://github.com/flextype/flextype.git
synced 2025-08-12 08:04:05 +02:00
Using Flextype Components
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
|
||||
namespace Flextype;
|
||||
|
||||
use Arr;
|
||||
use Flextype\Component\Arr\Arr;
|
||||
use Symfony\Component\Yaml\Yaml;
|
||||
|
||||
class Config
|
||||
|
@@ -12,7 +12,7 @@
|
||||
|
||||
namespace Flextype;
|
||||
|
||||
use Arr;
|
||||
use Flextype\Component\Arr\Arr;
|
||||
|
||||
class Events
|
||||
{
|
||||
|
@@ -13,8 +13,7 @@
|
||||
namespace Flextype;
|
||||
|
||||
use Symfony\Component\{Filesystem\Filesystem, Finder\Finder};
|
||||
use Url;
|
||||
use Session;
|
||||
use Flextype\Component\{Url\Url, Session\Session};
|
||||
|
||||
class Flextype
|
||||
{
|
||||
@@ -103,9 +102,9 @@ class Flextype
|
||||
function_exists('mb_internal_encoding') and mb_internal_encoding(Config::get('site.charset'));
|
||||
|
||||
// Set Error handler
|
||||
set_error_handler('ErrorHandler::error');
|
||||
register_shutdown_function('ErrorHandler::fatal');
|
||||
set_exception_handler('ErrorHandler::exception');
|
||||
//set_error_handler('ErrorHandler::error');
|
||||
//register_shutdown_function('ErrorHandler::fatal');
|
||||
//set_exception_handler('ErrorHandler::exception');
|
||||
|
||||
// Set default timezone
|
||||
date_default_timezone_set(Config::get('site.timezone'));
|
||||
|
@@ -12,9 +12,7 @@
|
||||
|
||||
namespace Flextype;
|
||||
|
||||
use Arr;
|
||||
use Url;
|
||||
use Response;
|
||||
use Flextype\Component\{Arr\Arr, Url\Url, Response\Response};
|
||||
use Symfony\Component\Yaml\Yaml;
|
||||
|
||||
class Pages
|
||||
|
@@ -13,7 +13,7 @@
|
||||
namespace Flextype;
|
||||
|
||||
use Thunder\Shortcode\ShortcodeFacade;
|
||||
use Url;
|
||||
use Flextype\Component\Url\Url;
|
||||
|
||||
class Shortcodes
|
||||
{
|
||||
|
@@ -35,3 +35,6 @@ define('CACHE_PATH', SITE_PATH . '/cache');
|
||||
|
||||
// Define the path to the logs directory (without trailing slash).
|
||||
define('LOGS_PATH', SITE_PATH . '/logs');
|
||||
|
||||
// Define the path to the logs directory (without trailing slash).
|
||||
define('ACCOUNTS_PATH', SITE_PATH . '/accounts');
|
||||
|
Reference in New Issue
Block a user