cleverage / php-orchestrator
Api for mixing sources API and ticketings system
0.3
2015-01-26 16:26 UTC
Requires
- php: >=5.3
Requires (Dev)
- atoum/atoum: dev-master
Suggests
- cleverage/php-trac: dev-master
- doctrine/cache: v1.3.0
- m4tthumphrey/php-gitlab-api: dev-master
- symfony/event-dispatcher: >2.1
This package is auto-updated.
Last update: 2024-10-29 04:09:18 UTC
README
Events
On service request :
- Pre fetch
- Post fetch
- Exception, which can be silented.
See the embedded Listeners.
Here is a possible implementation for Symfony2 :
<parameters>
<parameter key="orchestrator.event.service.fetch.pre" type="constant">CleverAge\Orchestrator\Events\OrchestratorEvents::SERVICE_FETCH_PRE</parameter>
<parameter key="orchestrator.event.service.fetch.post" type="constant">CleverAge\Orchestrator\Events\OrchestratorEvents::SERVICE_FETCH_POST</parameter>
<parameter key="orchestrator.event.service.fetch.error" type="constant">CleverAge\Orchestrator\Events\OrchestratorEvents::SERVICE_FETCH_ERROR</parameter>
</parameters>
<services>
<service id="orchestrator.listeners.cache" class="CleverAge\Orchestrator\Service\Listeners\CacheListener">
<tag name="kernel.event_listener" event="%orchestrator.event.service.fetch.pre" method="onServicePreFetch" priority="255"/>
<tag name="kernel.event_listener" event="%orchestrator.event.service.fetch.post%" method="onServicePostFetch" priority="-255"/>
<argument type="service" id="some.cache.service" />
</service>
</services>
#Run tests
php composer.phar install --dev
vendor/bin/atoum -bf .atoum.bootstrap.php -d tests