Properties

$access_token

$access_token : \EasyWeChat\Core\AccessToken

Type

\EasyWeChat\Core\AccessToken

$server

$server : \EasyWeChat\Server\Guard

Type

\EasyWeChat\Server\Guard

$user

$user : \EasyWeChat\User\User

Type

\EasyWeChat\User\User

$user_tag

$user_tag : \EasyWeChat\User\Tag

Type

\EasyWeChat\User\Tag

$user_group

$user_group : \EasyWeChat\User\Group

Type

\EasyWeChat\User\Group

$js

$js : \EasyWeChat\Js\Js

Type

\EasyWeChat\Js\Js

$oauth

$oauth : \Overtrue\Socialite\Providers\WeChatProvider

Type

\Overtrue\Socialite\Providers\WeChatProvider

$menu

$menu : \EasyWeChat\Menu\Menu

Type

\EasyWeChat\Menu\Menu

$notice

$notice : \EasyWeChat\Notice\Notice

Type

\EasyWeChat\Notice\Notice

$material

$material : \EasyWeChat\Material\Material

Type

\EasyWeChat\Material\Material

$material_temporary

$material_temporary : \EasyWeChat\Material\Temporary

Type

\EasyWeChat\Material\Temporary

$staff

$staff : \EasyWeChat\Staff\Staff

Type

\EasyWeChat\Staff\Staff

$url

$url : \EasyWeChat\Url\Url

Type

\EasyWeChat\Url\Url

$qrcode

$qrcode : \EasyWeChat\QRCode\QRCode

Type

\EasyWeChat\QRCode\QRCode

$semantic

$semantic : \EasyWeChat\Semantic\Semantic

Type

\EasyWeChat\Semantic\Semantic

$stats

$stats : \EasyWeChat\Stats\Stats

Type

\EasyWeChat\Stats\Stats

$merchant

$merchant : \EasyWeChat\Payment\Merchant

Type

\EasyWeChat\Payment\Merchant

$payment

$payment : \EasyWeChat\Payment\Payment

Type

\EasyWeChat\Payment\Payment

$lucky_money

$lucky_money : \EasyWeChat\Payment\LuckyMoney\LuckyMoney

Type

\EasyWeChat\Payment\LuckyMoney\LuckyMoney

$merchant_pay

$merchant_pay : \EasyWeChat\Payment\MerchantPay\MerchantPay

Type

\EasyWeChat\Payment\MerchantPay\MerchantPay

$cash_coupon

$cash_coupon : \EasyWeChat\Payment\CashCoupon\CashCoupon

Type

\EasyWeChat\Payment\CashCoupon\CashCoupon

$reply

$reply : \EasyWeChat\Reply\Reply

Type

\EasyWeChat\Reply\Reply

$broadcast

$broadcast : \EasyWeChat\Broadcast\Broadcast

Type

\EasyWeChat\Broadcast\Broadcast

$card

$card : \EasyWeChat\Card\Card

Type

\EasyWeChat\Card\Card

$device

$device : \EasyWeChat\Device\Device

Type

\EasyWeChat\Device\Device

$comment

$comment : \EasyWeChat\Comment\Comment

Type

\EasyWeChat\Comment\Comment

$shakearound

$shakearound : \EasyWeChat\ShakeAround\ShakeAround

Type

\EasyWeChat\ShakeAround\ShakeAround

$open_platform

$open_platform : \EasyWeChat\OpenPlatform\OpenPlatform

Type

\EasyWeChat\OpenPlatform\OpenPlatform

$mini_program

$mini_program : \EasyWeChat\MiniProgram\MiniProgram

Type

\EasyWeChat\MiniProgram\MiniProgram

$providers

$providers : array

Service Providers.

Type

array

$values

$values : 

Type

$factories

$factories : 

Type

$protected

$protected : 

Type

$frozen

$frozen : 

Type

$raw

$raw : 

Type

$keys

$keys : 

Type

Methods

__construct()

__construct(array  $config) 

Application constructor.

Objects and parameters can be passed as argument to the constructor.

Parameters

array $config

offsetSet()

offsetSet(string  $id, mixed  $value) 

Sets a parameter or an object.

Objects must be defined as Closures.

Allowing any PHP callable leads to difficult to debug problems as function names (strings) are callable (creating a function with the same name as an existing parameter would break your container).

Parameters

string $id

The unique identifier for the parameter or object

mixed $value

The value of the parameter or a closure to define an object

Throws

\Pimple\Exception\FrozenServiceException

Prevent override of a frozen service

offsetGet()

offsetGet(string  $id) : mixed

Gets a parameter or an object.

Parameters

string $id

The unique identifier for the parameter or object

Throws

\Pimple\Exception\UnknownIdentifierException

If the identifier is not defined

Returns

mixed —

The value of the parameter or an object

offsetExists()

offsetExists(string  $id) : boolean

Checks if a parameter or an object is set.

Parameters

string $id

The unique identifier for the parameter or object

Returns

boolean

offsetUnset()

offsetUnset(string  $id) 

Unsets a parameter or an object.

Parameters

string $id

The unique identifier for the parameter or object

factory()

factory(callable  $callable) : callable

Marks a callable as being a factory service.

Parameters

callable $callable

A service definition to be used as a factory

Throws

\Pimple\Exception\ExpectedInvokableException

Service definition has to be a closure or an invokable object

Returns

callable —

The passed callable

protect()

protect(callable  $callable) : callable

Protects a callable from being interpreted as a service.

This is useful when you want to store a callable as a parameter.

Parameters

callable $callable

A callable to protect from being evaluated

Throws

\Pimple\Exception\ExpectedInvokableException

Service definition has to be a closure or an invokable object

Returns

callable —

The passed callable

raw()

raw(string  $id) : mixed

Gets a parameter or the closure defining an object.

Parameters

string $id

The unique identifier for the parameter or object

Throws

\Pimple\Exception\UnknownIdentifierException

If the identifier is not defined

Returns

mixed —

The value of the parameter or the closure defining an object

extend()

extend(string  $id, callable  $callable) : callable

Extends an object definition.

Useful when you want to extend an existing object definition, without necessarily loading that object.

Parameters

string $id

The unique identifier for the object

callable $callable

A service definition to extend the original

Throws

\Pimple\Exception\UnknownIdentifierException

If the identifier is not defined

\Pimple\Exception\FrozenServiceException

If the service is frozen

\Pimple\Exception\InvalidServiceIdentifierException

If the identifier belongs to a parameter

\Pimple\Exception\ExpectedInvokableException

If the extension callable is not a closure or an invokable object

Returns

callable —

The wrapped callable

keys()

keys() : array

Returns all defined value names.

Returns

array —

An array of value names

register()

register(\Pimple\ServiceProviderInterface  $provider, array  $values = array()) : static

Registers a service provider.

Parameters

\Pimple\ServiceProviderInterface $provider

A ServiceProviderInterface instance

array $values

An array of values that customizes the provider

Returns

static

logConfiguration()

logConfiguration(array  $config) 

Log configuration.

Parameters

array $config

setProviders()

setProviders(array  $providers) 

Set providers.

Parameters

array $providers

getProviders()

getProviders() : array

Return all providers.

Returns

array

__get()

__get(string  $id) : mixed

Magic get access.

Parameters

string $id

Returns

mixed

__set()

__set(string  $id, mixed  $value) 

Magic set access.

Parameters

string $id
mixed $value

__call()

__call(string  $method, array  $args) : mixed

Magic call.

Parameters

string $method
array $args

Throws

\Exception

Returns

mixed

clearQuota()

clearQuota() : \EasyWeChat\Support\Collection

Returns

\EasyWeChat\Support\Collection

getCallbackIp()

getCallbackIp() : \EasyWeChat\Support\Collection

Returns

\EasyWeChat\Support\Collection

registerProviders()

registerProviders() 

Register providers.

registerBase()

registerBase() 

Register basic providers.

initializeLogger()

initializeLogger() 

Initialize logger.