PHP code example of jmikola / wildcard-event-dispatcher-bundle
1. Go to this page and download the library: Download jmikola/wildcard-event-dispatcher-bundle library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
jmikola / wildcard-event-dispatcher-bundle example snippets
xml
<!-- Acme/MainBundle/Resources/config/listener.xml -->
<service id="acme.listener" class="Acme/MainBundle/Listener">
<tag name="kernel.listener" event="core.*" method="onCoreEvent" />
</service>
xml
<!-- Acme/MainBundle/Resources/config/listener.xml -->
<service id="acme.listener" class="Acme/MainBundle/Listener">
<tag name="kernel.listener" event="core.*.*" method="onCoreEvent" />
</service>
xml
<!-- Acme/MainBundle/Resources/config/listener.xml -->
<service id="acme.listener" class="Acme/MainBundle/Listener">
<tag name="kernel.listener" event="core.#" method="onCoreEvent" />
</service>
xml
<!-- Acme/MainBundle/Resources/config/listener.xml -->
<service id="acme.listener" class="Acme/MainBundle/Listener">
<tag name="kernel.listener" event="#" method="onAnyEvent" />
</service>