phug/invoker
Composer 安装命令:
composer require phug/invoker
包简介
Typing-based invoker
README 文档
README
What is Phug Invoker?
Register callbacks with argument class typing and call the invoker to execute only the ones that match a given object.
Installation
Install via Composer
composer require phug/invoker
Usage
class Foo {} class Bar {} $invoker = new \Phug\Invoker([ function (Foo $foo) { return 'foo'; }, function (Bar $bar) { return 'BAR'; }, ]); $invoker->invoke(new Foo); // ['foo'] $invoker->invoke(new Bar); // ['BAR']
统计信息
- 总下载量: 111
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-01-13