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