diff options
author | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-04 17:50:34 +0200 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas.loeuillet@gmail.com> | 2013-08-04 17:50:34 +0200 |
commit | 46b77928f746a4231d064774b5b67fd892c7ce86 (patch) | |
tree | e3ea690b3f0def1744ddae758923cf92171ef985 /vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/README.md | |
parent | 68abd9c71b1d2f7bb2e9d21819584d1d15005b25 (diff) | |
download | wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.tar.gz wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.tar.zst wallabag-46b77928f746a4231d064774b5b67fd892c7ce86.zip |
rm vendor
Diffstat (limited to 'vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/README.md')
-rw-r--r-- | vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/README.md | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/README.md b/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/README.md deleted file mode 100644 index 11f6b188..00000000 --- a/vendor/symfony/event-dispatcher/Symfony/Component/EventDispatcher/README.md +++ /dev/null | |||
@@ -1,25 +0,0 @@ | |||
1 | EventDispatcher Component | ||
2 | ========================= | ||
3 | |||
4 | EventDispatcher implements a lightweight version of the Observer design | ||
5 | pattern. | ||
6 | |||
7 | use Symfony\Component\EventDispatcher\EventDispatcher; | ||
8 | use Symfony\Component\EventDispatcher\Event; | ||
9 | |||
10 | $dispatcher = new EventDispatcher(); | ||
11 | |||
12 | $dispatcher->addListener('event_name', function (Event $event) { | ||
13 | // ... | ||
14 | }); | ||
15 | |||
16 | $dispatcher->dispatch('event_name'); | ||
17 | |||
18 | Resources | ||
19 | --------- | ||
20 | |||
21 | You can run the unit tests with the following command: | ||
22 | |||
23 | $ cd path/to/Symfony/Component/EventDispatcher/ | ||
24 | $ composer.phar install --dev | ||
25 | $ phpunit | ||