Skip to content
This repository has been archived by the owner on Aug 20, 2022. It is now read-only.

Commit

Permalink
Updated to 1.1.0 version
Browse files Browse the repository at this point in the history
  • Loading branch information
josantonius committed Sep 3, 2017
1 parent 8dd0712 commit 208ef4a
Showing 1 changed file with 35 additions and 5 deletions.
40 changes: 35 additions & 5 deletions src/App/App.php
Original file line number Diff line number Diff line change
Expand Up @@ -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') {

Expand All @@ -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;
}
Expand All @@ -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() {

Expand All @@ -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) {

Expand All @@ -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) {

Expand All @@ -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() {

Expand All @@ -191,6 +208,8 @@ private function _setIp() {
* Get settings.
*
* @since 1.0.0
*
* @return void
*/
private function _getSettings() {

Expand Down Expand Up @@ -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() {

Expand All @@ -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();
}
}

Expand All @@ -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() {

Expand Down

0 comments on commit 208ef4a

Please sign in to comment.