PHP Class Phastlight\System

Inheritance: extends EventEmitter
Show file Open project: phastlight/phastlight

Public Methods

Method Description
__construct ( )
export ( $module_name, $module_classname ) export a module to the map
getEventEmitter ( ) get event emitter
getEventLoop ( ) get current event loop
getInstance ( ) the module instances
import ( $name ) import a module based on name, similar to node.js's require
load ( $name ) load a module

Method Details

__construct() public method

public __construct ( )

export() public method

export a module to the map
public export ( $module_name, $module_classname )

getEventEmitter() public method

get event emitter
public getEventEmitter ( )

getEventLoop() public method

get current event loop
public getEventLoop ( )

getInstance() public static method

the module instances
public static getInstance ( )

import() public method

import a module based on name, similar to node.js's require
public import ( $name )

load() public static method

load a module
public static load ( $name )