I have two event subscribers A and B. Both subscribed to the onFlush
event.
I want to make sure that a::onFlush()
is always called before B::onFlush()
.
I can't find any resource on this in the documentation.
I use symfony2 so it would be great if I could just pass the value in in the service definition.
Add a priority to your service tag. The higher the priority the earlier it will run.