Arikaim CMS

ArikaimServerFactory
in package

Arikaim server factory

Table of Contents

Constants

DEFAULT_SERVER_LIB  = 'swoole'
DEFAULT_SERVER_TYPE  = 'services'
SERVER_TYPE  = ['http', 'services', 'websocket']
SERVERS_LIST  = ['http' => ['swoole' => 'Arikaim\\Core\\Server\\Swoole\\HttpServer'], 'services' => ['swoole' => 'Arikaim\\Core\\Server\\Swoole\\ServicesServer'], 'websocket' => ['swoole' => 'Arikaim\\Core\\Server\\Swoole\\WebSocketServer']]
Server classes list

Methods

create()  : ServerInterface|null
Create server instance
getConsoleOptions()  : array<string|int, mixed>
Get console options
loadConfigFile()  : array<string|int, mixed>|null
Load config file

Constants

SERVERS_LIST

Server classes list

public mixed SERVERS_LIST = ['http' => ['swoole' => 'Arikaim\\Core\\Server\\Swoole\\HttpServer'], 'services' => ['swoole' => 'Arikaim\\Core\\Server\\Swoole\\ServicesServer'], 'websocket' => ['swoole' => 'Arikaim\\Core\\Server\\Swoole\\WebSocketServer']]

Methods

getConsoleOptions()

Get console options

public static getConsoleOptions() : array<string|int, mixed>
Return values
array<string|int, mixed>

loadConfigFile()

Load config file

public static loadConfigFile(string $fileName) : array<string|int, mixed>|null
Parameters
$fileName : string
Return values
array<string|int, mixed>|null

        
On this page

Search results