mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-10-09 06:49:41 +00:00
Compare commits
4 Commits
feature-ad
...
fix-timeli
Author | SHA1 | Date | |
---|---|---|---|
|
8364518282 | ||
|
4e50d0ace9 | ||
|
0b54adeb59 | ||
|
5d23de4862 |
@@ -319,23 +319,23 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
|
|||||||
'controller' => \Chill\PersonBundle\Controller\AccompanyingCourseApiController::class,
|
'controller' => \Chill\PersonBundle\Controller\AccompanyingCourseApiController::class,
|
||||||
'actions' => [
|
'actions' => [
|
||||||
'_entity' => [
|
'_entity' => [
|
||||||
'roles' => [
|
'roles' => [
|
||||||
Request::METHOD_GET => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE
|
Request::METHOD_GET => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
'participation' => [
|
'participation' => [
|
||||||
'methods' => [
|
'methods' => [
|
||||||
Request::METHOD_POST => true,
|
Request::METHOD_POST => true,
|
||||||
Request::METHOD_DELETE => true,
|
Request::METHOD_DELETE => true,
|
||||||
Request::METHOD_GET => false,
|
Request::METHOD_GET => false,
|
||||||
Request::METHOD_HEAD => false,
|
Request::METHOD_HEAD => false,
|
||||||
],
|
],
|
||||||
'roles' => [
|
'roles' => [
|
||||||
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
|
Request::METHOD_POST => \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE,
|
||||||
Request::METHOD_DELETE=> \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE
|
Request::METHOD_DELETE=> \Chill\PersonBundle\Security\Authorization\AccompanyingPeriodVoter::SEE
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
|
|
||||||
]
|
]
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
@@ -346,13 +346,13 @@ class ChillPersonExtension extends Extension implements PrependExtensionInterfac
|
|||||||
'base_role' => 'ROLE_USER',
|
'base_role' => 'ROLE_USER',
|
||||||
'actions' => [
|
'actions' => [
|
||||||
'_index' => [
|
'_index' => [
|
||||||
'methods' => [
|
'methods' => [
|
||||||
Request::METHOD_GET => true,
|
Request::METHOD_GET => true,
|
||||||
Request::METHOD_HEAD => true
|
Request::METHOD_HEAD => true
|
||||||
],
|
],
|
||||||
],
|
],
|
||||||
'_entity' => [
|
'_entity' => [
|
||||||
'methods' => [
|
'methods' => [
|
||||||
Request::METHOD_GET => true,
|
Request::METHOD_GET => true,
|
||||||
Request::METHOD_HEAD => true
|
Request::METHOD_HEAD => true
|
||||||
]
|
]
|
||||||
|
@@ -78,7 +78,7 @@ abstract class AbstractTimelineAccompanyingPeriod implements TimelineProviderInt
|
|||||||
}
|
}
|
||||||
|
|
||||||
$metadata = $this->em
|
$metadata = $this->em
|
||||||
->getClassMetadata('ChillPersonBundle:AccompanyingPeriod')
|
->getClassMetadata('ChillPersonBundle:AccompanyingPeriodParticipation')
|
||||||
;
|
;
|
||||||
|
|
||||||
return array(
|
return array(
|
||||||
|
@@ -46,8 +46,8 @@ class TimelineAccompanyingPeriodClosing extends AbstractTimelineAccompanyingPeri
|
|||||||
public function fetchQuery($context, array $args)
|
public function fetchQuery($context, array $args)
|
||||||
{
|
{
|
||||||
$metadata = $this->em
|
$metadata = $this->em
|
||||||
->getClassMetadata('ChillPersonBundle:AccompanyingPeriod');
|
->getClassMetadata('ChillPersonBundle:AccompanyingPeriodParticipation');
|
||||||
|
|
||||||
$data = $this->basicFetchQuery($context, $args);
|
$data = $this->basicFetchQuery($context, $args);
|
||||||
|
|
||||||
$data['type'] = 'accompanying_period_closing';
|
$data['type'] = 'accompanying_period_closing';
|
||||||
|
@@ -46,8 +46,8 @@ class TimelineAccompanyingPeriodOpening extends AbstractTimelineAccompanyingPeri
|
|||||||
public function fetchQuery($context, array $args)
|
public function fetchQuery($context, array $args)
|
||||||
{
|
{
|
||||||
$metadata = $this->em
|
$metadata = $this->em
|
||||||
->getClassMetadata('ChillPersonBundle:AccompanyingPeriod');
|
->getClassMetadata('ChillPersonBundle:AccompanyingPeriodParticipation');
|
||||||
|
|
||||||
$data = $this->basicFetchQuery($context, $args);
|
$data = $this->basicFetchQuery($context, $args);
|
||||||
|
|
||||||
$data['type'] = 'accompanying_period_opening';
|
$data['type'] = 'accompanying_period_opening';
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
parameters:
|
parameters:
|
||||||
# cl_chill_person.example.class: Chill\PersonBundle\Example
|
# cl_chill_person.example.class: Chill\PersonBundle\Example
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
|
||||||
|
|
||||||
chill.person.form.type.select2maritalstatus:
|
chill.person.form.type.select2maritalstatus:
|
||||||
|
Reference in New Issue
Block a user