A bundle that performs actions based on events, providing they pass the specified conditions
To register a new condition, the condition must extend
Condition class will require that the
getFormType method is declared. This should be a simple method providing either the name of
the form or an instance of the form type for that entity.
It will also require that the
loadService method is declared. The bundle will provide this method with the service
container and this method will be responsible for loading and returning the service that will perform the condition.
For simple conditions that implement the
loadService method can return
$this (although this is not recommend as it violates the SRP.
For more complicated logic, or logic that requires external services, it is necessary to extra this functionality in to a separate class.