|
@@ 142-146 (lines=5) @@
|
| 139 |
|
// founded callback injection alias |
| 140 |
|
if (self::$Request->getCallbackAlias() !== false) { |
| 141 |
|
$cName = self::$Request->getCallbackAlias(); |
| 142 |
|
if (class_exists($cName)) { |
| 143 |
|
$callClass = new $cName; |
| 144 |
|
} else { |
| 145 |
|
throw new NotFoundException('Callback alias of class "' . App::$Security->strip_tags($cName) . '" is not founded'); |
| 146 |
|
} |
| 147 |
|
} else { // typical parsing of native apps |
| 148 |
|
$cName = '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController(); |
| 149 |
|
|
|
@@ 151-155 (lines=5) @@
|
| 148 |
|
$cName = '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController(); |
| 149 |
|
|
| 150 |
|
// try to initialize class object |
| 151 |
|
if (class_exists($cName)) { |
| 152 |
|
$callClass = new $cName; |
| 153 |
|
} else { |
| 154 |
|
throw new NotFoundException('Application can not be runned. Initialized class not founded: ' . App::$Security->strip_tags($cName)); |
| 155 |
|
} |
| 156 |
|
} |
| 157 |
|
|
| 158 |
|
// try to call method of founded callback class |