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