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
|
* Handle the request
|
||||||
*/
|
*/
|
||||||
$application = new \Phalcon\Mvc\Application($di);
|
$application = new \Phalcon\Mvc\Application($di);
|
||||||
echo $application->handle()->getContent();
|
echo $application->handle($_SERVER['REQUEST_URI'])->getContent();
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$response = array();
|
$response = array();
|
||||||
$response['errorMessage'] = $e->getMessage();
|
$response['errorMessage'] = $e->getMessage();
|
||||||
|
|
|
@ -111,8 +111,7 @@ try {
|
||||||
// always flush caches for local testing
|
// always flush caches for local testing
|
||||||
(new \OPNsense\Base\Menu\MenuSystem())->invalidateCache();
|
(new \OPNsense\Base\Menu\MenuSystem())->invalidateCache();
|
||||||
(new \OPNsense\Core\ACL())->invalidateCache();
|
(new \OPNsense\Core\ACL())->invalidateCache();
|
||||||
echo $application->handle()->getContent();
|
echo $application->handle($_SERVER['REQUEST_URI'])->getContent();
|
||||||
|
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
echo $e->getMessage();
|
echo $e->getMessage();
|
||||||
echo '<pre>' . $e->getTraceAsString() . '</pre>';
|
echo '<pre>' . $e->getTraceAsString() . '</pre>';
|
||||||
|
|
Loading…
Reference in New Issue