PHP Class EasyWeChat\Foundation\Application

Inheritance: extends Pimple\Container
Show file Open project: overtrue/wechat Class Usage Examples

Protected Properties

Property Type Description
$providers array Service Providers.

Public Methods

Method Description
__construct ( array $config ) Application constructor.
__get ( string $id ) : mixed Magic get access.
__set ( string $id, mixed $value ) Magic set access.
addProvider ( string $provider ) : Application Add a provider.
getProviders ( ) : array Return all providers.
setProviders ( array $providers ) Set providers.

Private Methods

Method Description
initializeLogger ( ) Initialize logger.
registerBase ( ) Register basic providers.
registerProviders ( ) Register providers.

Method Details

__construct() public method

Application constructor.
public __construct ( array $config )
$config array

__get() public method

Magic get access.
public __get ( string $id ) : mixed
$id string
return mixed

__set() public method

Magic set access.
public __set ( string $id, mixed $value )
$id string
$value mixed

addProvider() public method

Add a provider.
public addProvider ( string $provider ) : Application
$provider string
return Application

getProviders() public method

Return all providers.
public getProviders ( ) : array
return array

setProviders() public method

Set providers.
public setProviders ( array $providers )
$providers array

Property Details

$providers protected property

Service Providers.
protected array $providers
return array