diff options
Diffstat (limited to 'framework/prado.php')
-rw-r--r-- | framework/prado.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/framework/prado.php b/framework/prado.php index e619c398..5447a54a 100644 --- a/framework/prado.php +++ b/framework/prado.php @@ -19,13 +19,13 @@ namespace Prado; -require_once __DIR__ . '/../vendor/autoload.php'; - /** * Defines Prado class if not defined. */ if(!class_exists('Prado',false)) { + require(__DIR__ . '/Pradobase.php'); + /** * Prado class. * @@ -38,11 +38,15 @@ if(!class_exists('Prado',false)) } } +Prado::init(); + + /** - * Initializes error and exception handlers + * Defines basic class aliases used by not-PSR4 applications */ -Prado::initErrorHandlers(); +class_alias('\Prado\Prado', 'Prado', true); class_alias('\Prado\TApplication', 'TApplication', true); +class_alias('\Prado\TModule', 'TModule', true); class_alias('\Prado\Web\Services\TPageService', 'TPageService', true); class_alias('\Prado\Web\UI\TPage', 'TPage', true); |