Commit a9e7adfb authored by wilhelmhb's avatar wilhelmhb

loginlistener and validation for the bundle

parent 6f7dd108
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<parameters>
<parameter key="kernel.listener.apibundle.login.class"></parameter>
</parameters>
<services>
<service id="kernel.listener.apibundle.login" class="ApiBundle\Listener\LoginRedirectionListener" scope="request">
<tag name="kernel.event_listener" event="security.interactive_login" method="onSecurityInteractiveLogin" />
<argument type="service" id="router" />
<argument type="service" id="event_dispatcher" />
</service>
</services>
</container>
# src/ApiBundle/Resources/config/validation.yml
ApiBundle\Entity\Age:
getters:
idFiche:
- NotBlank: ~
idMembre:
- NotBlank: ~
age:
- NotBlank: ~
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment