@@ 185-189 (lines=5) @@ | ||
182 | // founded callback injection alias |
|
183 | if (self::$Request->getCallbackAlias() !== false) { |
|
184 | $cName = self::$Request->getCallbackAlias(); |
|
185 | if (class_exists($cName)) { |
|
186 | $callClass = new $cName; |
|
187 | } else { |
|
188 | throw new NotFoundException('Callback alias of class "' . App::$Security->strip_tags($cName) . '" is not founded'); |
|
189 | } |
|
190 | } else { // typical parsing of native apps |
|
191 | $cName = '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController(); |
|
192 | ||
@@ 194-198 (lines=5) @@ | ||
191 | $cName = '\Apps\Controller\\' . env_name . '\\' . self::$Request->getController(); |
|
192 | ||
193 | // try to initialize class object |
|
194 | if (class_exists($cName)) { |
|
195 | $callClass = new $cName; |
|
196 | } else { |
|
197 | throw new NotFoundException('Application can not be runned. Initialized class not founded: ' . App::$Security->strip_tags($cName)); |
|
198 | } |
|
199 | } |
|
200 | ||
201 | // try to call method of founded callback class |