register() register(string $hook, object $reference, string $method) 注册需要监听的插件方法(钩子) Parameters string $hook object $reference string $method
trigger() trigger(string $hook, mixed $data = '') : mixed 触发一个钩子 Parameters string $hook 钩子的名称 mixed $data 钩子的入参 Returns mixed