Zend Framwork2で使われそうなSignalSlotの利用メモ (元々はPhly_PubSubとしてマシューが開発を進めてたもの)。 もうZend\Sessionでは使われてますけど。 利用したZF2のソースは http://github.com/zendframework/zf2からpullしたものです。 (今InvalidArgumentExceptionのときrequireがないとかでるけど多分気のせい。きっと) その1 単純なロガーなどのオンオフに利用できそうなあれ emitの第一引数には"ポイント名"となる信号キー文字列を設定します <?php set_include_path(__DIR__.'/library/'); require_once 'Zend/Loader/Autoloader.php'; Zend\Loader\Autoloader::getInsta