1
0
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:
Awilum
2018-04-07 12:23:54 +03:00
parent f3b710c56d
commit ce95ffa127
6 changed files with 11 additions and 11 deletions

View File

@@ -12,7 +12,7 @@
namespace Flextype;
use Arr;
use Flextype\Component\Arr\Arr;
use Symfony\Component\Yaml\Yaml;
class Config

View File

@@ -12,7 +12,7 @@
namespace Flextype;
use Arr;
use Flextype\Component\Arr\Arr;
class Events
{

View File

@@ -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'));

View File

@@ -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

View File

@@ -13,7 +13,7 @@
namespace Flextype;
use Thunder\Shortcode\ShortcodeFacade;
use Url;
use Flextype\Component\Url\Url;
class Shortcodes
{

View File

@@ -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');