\EasyWeChat\MiniProgramMiniProgram

Class MiniProgram.

Summary

Methods
Properties
Constants
__construct()
fetch()
__get()
$server
$sns
$notice
$staff
$qrcode
$material_temporary
$stats
No constants found
No protected methods found
$container
N/A
No private methods found
No private properties found
N/A

Properties

$server

$server : \EasyWeChat\MiniProgram\Server\Guard

Type

\EasyWeChat\MiniProgram\Server\Guard

$sns

$sns : \EasyWeChat\MiniProgram\Sns\Sns

Type

\EasyWeChat\MiniProgram\Sns\Sns

$notice

$notice : \EasyWeChat\MiniProgram\Notice\Notice

Type

\EasyWeChat\MiniProgram\Notice\Notice

$staff

$staff : \EasyWeChat\MiniProgram\Staff\Staff

Type

\EasyWeChat\MiniProgram\Staff\Staff

$qrcode

$qrcode : \EasyWeChat\MiniProgram\QRCode\QRCode

Type

\EasyWeChat\MiniProgram\QRCode\QRCode

$material_temporary

$material_temporary : \EasyWeChat\MiniProgram\Material\Temporary

Type

\EasyWeChat\MiniProgram\Material\Temporary

$stats

$stats : \EasyWeChat\MiniProgram\Stats\Stats

Type

\EasyWeChat\MiniProgram\Stats\Stats

Methods

__construct()

__construct(\Pimple\Container  $container) 

ContainerAccess constructor.

Parameters

\Pimple\Container $container

fetch()

fetch(string  $key, callable|null  $callable = null) : mixed

Fetches from pimple container.

Parameters

string $key
callable|null $callable

Returns

mixed

__get()

__get(string  $key) : mixed

Gets a parameter or an object from pimple container.

Get the class basename of the current class. Convert class basename to snake-case and concatenation with dot notation.

E.g. Class 'EasyWechat', $key foo -> 'easy_wechat.foo'

Parameters

string $key

The unique identifier for the parameter or object

Throws

\InvalidArgumentException

If the identifier is not defined

Returns

mixed —

The value of the parameter or an object