static test

This commit is contained in:
2025-04-25 21:27:31 -04:00
parent 025bc2d924
commit ac99a78bdf
9 changed files with 103 additions and 14 deletions

View File

@@ -16,12 +16,13 @@ use Spiral\RoadRunner\Http\PSR7Worker;
use Spiral\RoadRunner\Worker;
/**
* Abstract class Server
* Class Server
*
* This abstract class serves as a base for creating server instances.
* It initializes the PSR-7 worker and router, and provides an abstract method
* for registering routes. It also includes a method to start the server and handle
* incoming requests.
* This class represents the main server application.
* It handles incoming HTTP requests, routes them to the appropriate handlers,
* and manages the server lifecycle.
*
* @package Siteworxpro\App
*/
class Server
{
@@ -153,7 +154,7 @@ class Server
Logger::error($e->getTraceAsString());
$json = ['status_code' => 500, 'reason_phrase' => 'Server Error'];
if (Config::get("DEV_MODE", 'bool')) {
if (Config::get("server.dev_mode")) {
$json = [
'status_code' => 500,
'reason_phrase' => 'Server Error',