You've already forked Php-Template
static test
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user