Phalcon 4.x fixes. closes https://github.com/opnsense/ui_devtools/issues/5
This commit is contained in:
parent
0453bdf58c
commit
641929ac12
|
@ -56,8 +56,7 @@ try {
|
|||
* Handle the request
|
||||
*/
|
||||
$application = new \Phalcon\Mvc\Application($di);
|
||||
echo $application->handle()->getContent();
|
||||
|
||||
echo $application->handle($_SERVER['REQUEST_URI'])->getContent();
|
||||
} catch (\Exception $e) {
|
||||
$response = array();
|
||||
$response['errorMessage'] = $e->getMessage();
|
||||
|
|
|
@ -111,8 +111,7 @@ try {
|
|||
// always flush caches for local testing
|
||||
(new \OPNsense\Base\Menu\MenuSystem())->invalidateCache();
|
||||
(new \OPNsense\Core\ACL())->invalidateCache();
|
||||
echo $application->handle()->getContent();
|
||||
|
||||
echo $application->handle($_SERVER['REQUEST_URI'])->getContent();
|
||||
} catch (\Exception $e) {
|
||||
echo $e->getMessage();
|
||||
echo '<pre>' . $e->getTraceAsString() . '</pre>';
|
||||
|
|
Loading…
Reference in New Issue