From 208ef4a6815ba8d1d7127419dcf37db3ddd7e980 Mon Sep 17 00:00:00 2001 From: Josantonius Date: Sun, 3 Sep 2017 20:15:10 +0200 Subject: [PATCH] Updated to 1.1.0 version --- src/App/App.php | 40 +++++++++++++++++++++++++++++++++++----- 1 file changed, 35 insertions(+), 5 deletions(-) diff --git a/src/App/App.php b/src/App/App.php index eaaf72b..7db04a7 100644 --- a/src/App/App.php +++ b/src/App/App.php @@ -81,6 +81,8 @@ public static function getInstance() { * @param string $baseDirectory → directory where class is instantiated * @param string $type → application type * @param string $id → unique id for the application + * + * @return void */ public static function run($baseDirectory, $type = 'app', $id = '0') { @@ -105,10 +107,12 @@ public static function run($baseDirectory, $type = 'app', $id = '0') { * @since 1.0.1 * * @link https://github.com/Josantonius/PHP-ErrorHandler + * + * @return void */ private function _runErrorHandler() { - if (class_exists($class='Josantonius\ErrorHandler\ErrorHandler')) { + if (class_exists($class = 'Josantonius\ErrorHandler\ErrorHandler')) { new $class; } @@ -119,7 +123,12 @@ private function _runErrorHandler() { * * @since 1.0.1 * + * @uses void Cleaner::removeMagicQuotes() → remove magic quotes + * @uses void Cleaner::unregisterGlobals() → remove register globals + * * @link https://github.com/Josantonius/PHP-Cleaner + * + * @return void */ private function _runCleaner() { @@ -136,6 +145,8 @@ private function _runCleaner() { * @since 1.0.1 * * @param string $baseDirectory → directory where class is instantiated + * + * @return void */ private function _setPaths($baseDirectory) { @@ -152,6 +163,8 @@ private function _setPaths($baseDirectory) { * * @param string $baseDirectory → directory where class is instantiated * @param string $type → application type + * + * @return void */ private function _setUrls($baseDirectory, $type) { @@ -175,7 +188,11 @@ private function _setUrls($baseDirectory, $type) { * * @since 1.1.0 * + * @uses string Ip::get() → get IP + * * @link https://github.com/Josantonius/PHP-Ip + * + * @return void */ private function _setIp() { @@ -191,6 +208,8 @@ private function _setIp() { * Get settings. * * @since 1.0.0 + * + * @return void */ private function _getSettings() { @@ -221,7 +240,12 @@ private function _getSettings() { * * @since 1.1.0 * + * @uses string Hook::getInstance() → get Hook instance + * @uses string Hook::addActions() → add action hook + * * @link https://github.com/Josantonius/PHP-Hook + * + * @return void */ private function _runHooks() { @@ -243,16 +267,17 @@ private function _runHooks() { * * @since 1.0.1 * + * @uses string Module::loadModules() → load modules + * * @link https://github.com/Eliasis-Framework/Module + * + * @return void */ private function _runModules() { if (class_exists($Module = 'Eliasis\Module\Module')) { - $Module::loadModules( - - $modulesPath = App::ROOT() . 'modules' . App::DS - ); + $Module::loadModules(); } } @@ -261,7 +286,12 @@ private function _runModules() { * * @since 1.0.1 * + * @uses string Router::addRoute() → add routes + * @uses string Router::dispatch() → dispath routes + * * @link https://github.com/Josantonius/PHP-Router + * + * @return void */ private function _runRoutes() {