PHP 클래스 PFinal\Wechat\Kernel

파일 보기 프로젝트 열기: pfinal/wechat 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$api Api
$dispatcher Symfony\Component\EventDispatcher\EventDispatcher
$redpackHelper PFinal\Wechat\SDK\Redpack\Helper

공개 메소드들

메소드 설명
getApi ( ) : Api
getConfig ( $name, $defaultValue = null )
getDispatcher ( ) : EventDispatcher
getRedpackHelper ( ) : Helper
handle ( ) : string
init ( $config )
register ( string $type, callback $callback, integer $priority )

메소드 상세

getApi() 공개 정적인 메소드

public static getApi ( ) : Api
리턴 Api

getConfig() 공개 정적인 메소드

public static getConfig ( $name, $defaultValue = null )

getDispatcher() 공개 정적인 메소드

public static getDispatcher ( ) : EventDispatcher
리턴 Symfony\Component\EventDispatcher\EventDispatcher

getRedpackHelper() 공개 정적인 메소드

public static getRedpackHelper ( ) : Helper
리턴 PFinal\Wechat\SDK\Redpack\Helper

handle() 공개 정적인 메소드

public static handle ( ) : string
리턴 string

init() 공개 정적인 메소드

public static init ( $config )

register() 공개 정적인 메소드

public static register ( string $type, callback $callback, integer $priority )
$type string 微信事件类型,对应 Message::TYPE_XXX 常量
$callback callback 处理函数,此函数接收一个WechatEvent对象
$priority integer 值大者优先级高

프로퍼티 상세

$api 보호되어 있는 정적으로 프로퍼티

protected static Api,PFinal\Wechat $api
리턴 Api

$dispatcher 보호되어 있는 정적으로 프로퍼티

protected static EventDispatcher,Symfony\Component\EventDispatcher $dispatcher
리턴 Symfony\Component\EventDispatcher\EventDispatcher

$redpackHelper 보호되어 있는 정적으로 프로퍼티

protected static Helper,PFinal\Wechat\SDK\Redpack $redpackHelper
리턴 PFinal\Wechat\SDK\Redpack\Helper