home
/
zktecojo
/
public_html
/
vendor
/
symfony
/
event-dispatcher
/
Symfony
/
Component
/
EventDispatcher
➕ New
📤 Upload
✎ Editing:
README.md
← Back
EventDispatcher Component ========================= The Symfony EventDispatcher component implements the Mediator pattern in a simple and effective way to make your projects truly extensible. ```php use Symfony\Component\EventDispatcher\EventDispatcher; use Symfony\Component\EventDispatcher\Event; $dispatcher = new EventDispatcher(); $dispatcher->addListener('event_name', function (Event $event) { // ... }); $dispatcher->dispatch('event_name'); ``` Resources --------- You can run the unit tests with the following command: $ cd path/to/Symfony/Component/EventDispatcher/ $ composer.phar install $ phpunit
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel