summaryrefslogtreecommitdiff
path: root/framework/prado.php
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
committerFabio Bas <ctrlaltca@gmail.com>2015-01-22 09:14:12 +0100
commit5230f8f8a86fc1ae5d90f8c74ae65c93e197502b (patch)
treee870d29e21c14d5b1683d638dff978afe0a104fa /framework/prado.php
parent53e4cd65205ac33d7dbc61a767f467c1b896dfc6 (diff)
Apply namespaces to class inheritances (pt1)
Diffstat (limited to 'framework/prado.php')
-rw-r--r--framework/prado.php26
1 files changed, 4 insertions, 22 deletions
diff --git a/framework/prado.php b/framework/prado.php
index a9298756..e619c398 100644
--- a/framework/prado.php
+++ b/framework/prado.php
@@ -19,10 +19,7 @@
namespace Prado;
-/**
- * Includes the PradoBase class file
- */
-require_once(dirname(__FILE__).'/PradoBase.php');
+require_once __DIR__ . '/../vendor/autoload.php';
/**
* Defines Prado class if not defined.
@@ -42,25 +39,10 @@ if(!class_exists('Prado',false))
}
/**
- * Registers the autoload function.
- * Since Prado::autoload will report a fatal error if the class file
- * cannot be found, if you have multiple autoloaders, Prado::autoload
- * should be registered in the last.
- */
-spl_autoload_register(array('Prado','autoload'));
-
-/**
* Initializes error and exception handlers
*/
Prado::initErrorHandlers();
-/**
- * Includes TApplication class file
- */
-require_once(dirname(__FILE__).'/TApplication.php');
-
-/**
- * Includes TShellApplication class file
- */
-require_once(dirname(__FILE__).'/TShellApplication.php');
-
+class_alias('\Prado\TApplication', 'TApplication', true);
+class_alias('\Prado\Web\Services\TPageService', 'TPageService', true);
+class_alias('\Prado\Web\UI\TPage', 'TPage', true);