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