摘要:
name . " and count=" . $count . "-----in listener function"; $count += 1; }; } } abstract class Event { public $name; public $callback = []; public function __construct($name) { $this... 阅读全文
摘要:
看laravel的包文件时,无意中发现他引入了一个专门实例化一个类而又不触发构造方法的包。 "name": "doctrine/instantiator", "description": "A small, lightweight utility to instantiate objects in 阅读全文
摘要:
直接上浓缩版的代码 <?phpinterface Step{ public static function go(Closure $next);} /*** */class FirstStep implements Step{ public static function go(Closure $n 阅读全文