mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-12 13:24:25 +00:00
make timeline & paginator service private
This commit is contained in:
parent
ba7abaebf5
commit
1fa01474d8
@ -27,6 +27,7 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
|||||||
use Symfony\Component\Translation\TranslatorInterface;
|
use Symfony\Component\Translation\TranslatorInterface;
|
||||||
use Chill\TaskBundle\Event\UI\UIEvent;
|
use Chill\TaskBundle\Event\UI\UIEvent;
|
||||||
use Chill\MainBundle\Repository\CenterRepository;
|
use Chill\MainBundle\Repository\CenterRepository;
|
||||||
|
use Chill\MainBundle\Timeline\TimelineBuilder;
|
||||||
|
|
||||||
|
|
||||||
class SingleTaskController extends Controller
|
class SingleTaskController extends Controller
|
||||||
@ -37,14 +38,23 @@ class SingleTaskController extends Controller
|
|||||||
*/
|
*/
|
||||||
protected $eventDispatcher;
|
protected $eventDispatcher;
|
||||||
|
|
||||||
|
/**
|
||||||
|
*
|
||||||
|
* @var TimelineBuilder
|
||||||
|
*/
|
||||||
|
protected $timelineBuilder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SingleTaskController constructor.
|
* SingleTaskController constructor.
|
||||||
*
|
*
|
||||||
* @param EventDispatcherInterface $eventDispatcher
|
* @param EventDispatcherInterface $eventDispatcher
|
||||||
*/
|
*/
|
||||||
public function __construct(EventDispatcherInterface $eventDispatcher)
|
public function __construct(
|
||||||
{
|
EventDispatcherInterface $eventDispatcher,
|
||||||
|
TimelineBuilder $timelineBuilder
|
||||||
|
) {
|
||||||
$this->eventDispatcher = $eventDispatcher;
|
$this->eventDispatcher = $eventDispatcher;
|
||||||
|
$this->timelineBuilder = $timelineBuilder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -151,7 +161,7 @@ class SingleTaskController extends Controller
|
|||||||
throw $this->createNotFoundException('Unable to find Task entity.');
|
throw $this->createNotFoundException('Unable to find Task entity.');
|
||||||
}
|
}
|
||||||
|
|
||||||
$timeline = $this->get('chill.main.timeline_builder')
|
$timeline = $this->timelineBuilder
|
||||||
->getTimelineHTML('task', array('task' => $task));
|
->getTimelineHTML('task', array('task' => $task));
|
||||||
|
|
||||||
$event = new PrivacyEvent($person, array(
|
$event = new PrivacyEvent($person, array(
|
||||||
|
@ -6,4 +6,5 @@ services:
|
|||||||
Chill\TaskBundle\Controller\SingleTaskController:
|
Chill\TaskBundle\Controller\SingleTaskController:
|
||||||
arguments:
|
arguments:
|
||||||
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
|
$eventDispatcher: '@Symfony\Component\EventDispatcher\EventDispatcherInterface'
|
||||||
|
$timelineBuilder: '@chill_main.timeline_builder'
|
||||||
tags: ['controller.service_arguments']
|
tags: ['controller.service_arguments']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user