mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-13 13:54:23 +00:00
rename PickSubscriptionType to PickEventType
This commit is contained in:
parent
8a6e7396ca
commit
c2b5e0f767
@ -23,7 +23,7 @@
|
|||||||
namespace Chill\EventBundle\Controller;
|
namespace Chill\EventBundle\Controller;
|
||||||
|
|
||||||
use Chill\EventBundle\Entity\Participation;
|
use Chill\EventBundle\Entity\Participation;
|
||||||
use Chill\EventBundle\Form\Type\PickSubscriptionType;
|
use Chill\EventBundle\Form\Type\PickEventType;
|
||||||
use Chill\EventBundle\Security\Authorization\EventVoter;
|
use Chill\EventBundle\Security\Authorization\EventVoter;
|
||||||
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
|
use Chill\MainBundle\Security\Authorization\AuthorizationHelper;
|
||||||
use Chill\PersonBundle\Entity\Person;
|
use Chill\PersonBundle\Entity\Person;
|
||||||
@ -434,7 +434,7 @@ class EventController extends Controller
|
|||||||
))
|
))
|
||||||
;
|
;
|
||||||
|
|
||||||
$builder->add('event_id', PickSubscriptionType::class, array(
|
$builder->add('event_id', PickEventType::class, array(
|
||||||
'role' => new Role('CHILL_EVENT_CREATE'),
|
'role' => new Role('CHILL_EVENT_CREATE'),
|
||||||
'centers' => $person->getCenter()
|
'centers' => $person->getCenter()
|
||||||
));
|
));
|
||||||
|
@ -41,12 +41,12 @@ use Symfony\Component\Security\Core\Role\Role;
|
|||||||
use Symfony\Component\Translation\TranslatorInterface;
|
use Symfony\Component\Translation\TranslatorInterface;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class PickSubscriptionType
|
* Class PickEventType
|
||||||
*
|
*
|
||||||
* @package Chill\EventBundle\Form\Type
|
* @package Chill\EventBundle\Form\Type
|
||||||
* @author Mathieu Jaumotte jaum_mathieu@collectifs.net
|
* @author Mathieu Jaumotte jaum_mathieu@collectifs.net
|
||||||
*/
|
*/
|
||||||
class PickSubscriptionType extends AbstractType
|
class PickEventType extends AbstractType
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -75,7 +75,7 @@ class PickSubscriptionType extends AbstractType
|
|||||||
protected $translator;
|
protected $translator;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PickSubscriptionType constructor.
|
* PickEventType constructor.
|
||||||
*
|
*
|
||||||
* @param EventRepository $eventRepository
|
* @param EventRepository $eventRepository
|
||||||
* @param TokenStorageInterface $tokenStorage
|
* @param TokenStorageInterface $tokenStorage
|
@ -47,7 +47,7 @@ services:
|
|||||||
tags:
|
tags:
|
||||||
- { name: form.type }
|
- { name: form.type }
|
||||||
|
|
||||||
Chill\EventBundle\Form\Type\PickSubscriptionType:
|
Chill\EventBundle\Form\Type\PickEventType:
|
||||||
arguments:
|
arguments:
|
||||||
$eventRepository: "@chill_event.repository.event"
|
$eventRepository: "@chill_event.repository.event"
|
||||||
$tokenStorage: "@security.token_storage"
|
$tokenStorage: "@security.token_storage"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user