mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
route annotation removed
This commit is contained in:
parent
50fbc7fd15
commit
039c74a1e4
@ -21,7 +21,6 @@ use Chill\MainBundle\Entity\Scope;
|
|||||||
use Chill\PersonBundle\Repository\AccompanyingPeriodACLAwareRepository;
|
use Chill\PersonBundle\Repository\AccompanyingPeriodACLAwareRepository;
|
||||||
use Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter;
|
use Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter;
|
||||||
use Symfony\Component\Workflow\Registry;
|
use Symfony\Component\Workflow\Registry;
|
||||||
use Symfony\Component\Routing\Annotation\Route;
|
|
||||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
|
||||||
|
|
||||||
class AccompanyingCourseApiController extends ApiController
|
class AccompanyingCourseApiController extends ApiController
|
||||||
@ -195,12 +194,6 @@ $workflow = $this->registry->get($accompanyingPeriod);
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Route("/api/1.0/person/accompanying-course/by-person/{person_id}.{_format}",
|
|
||||||
* name="chill_person_accompanyingperiod_by_person",
|
|
||||||
* requirements={
|
|
||||||
* "_format"="json"
|
|
||||||
* })
|
|
||||||
*
|
|
||||||
* @ParamConverter("person", options={"id" = "person_id"})
|
* @ParamConverter("person", options={"id" = "person_id"})
|
||||||
*/
|
*/
|
||||||
public function getAccompanyingPeriodsByPerson(Person $person){
|
public function getAccompanyingPeriodsByPerson(Person $person){
|
||||||
|
@ -8,9 +8,7 @@ use Chill\PersonBundle\Entity\Person;
|
|||||||
use Chill\PersonBundle\Repository\Relationships\RelationshipRepository;
|
use Chill\PersonBundle\Repository\Relationships\RelationshipRepository;
|
||||||
use Symfony\Component\HttpFoundation\Response;
|
use Symfony\Component\HttpFoundation\Response;
|
||||||
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
use Symfony\Component\Validator\Validator\ValidatorInterface;
|
||||||
use Symfony\Component\Routing\Annotation\Route;
|
|
||||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
|
||||||
use Symfony\Component\HttpFoundation\Request;
|
|
||||||
|
|
||||||
class RelationshipApiController extends ApiController
|
class RelationshipApiController extends ApiController
|
||||||
{
|
{
|
||||||
@ -24,9 +22,6 @@ class RelationshipApiController extends ApiController
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @Route("/api/1.0/relation/relationship/by-person/{person_id}.json",
|
|
||||||
* name="chill_relationship_by_person")
|
|
||||||
*
|
|
||||||
* @ParamConverter("person", options={"id" = "person_id"})
|
* @ParamConverter("person", options={"id" = "person_id"})
|
||||||
*/
|
*/
|
||||||
public function getRelationshipsByPerson(Person $person)
|
public function getRelationshipsByPerson(Person $person)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user