summaryrefslogtreecommitdiff
path: root/framework/prado.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-01-25 20:04:57 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-01-25 20:04:57 +0100
commite4999b25052d1ad9400a0f9fd5289a49eea1bddc (patch)
tree50e9b819fc3326cf08e882b648f8dafc8fec3fa4 /framework/prado.php
parent5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (diff)
More namespace changes
Changed version to 3.2.99; Attempt at fixing autoloading fixed enough namespaces to have some demos running
Diffstat (limited to 'framework/prado.php')
-rw-r--r--framework/prado.php12
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);