cleanup global context (#1943)
This commit is contained in:
@@ -13,7 +13,6 @@ use App\Calendar\Google;
|
||||
use App\Calendar\Source;
|
||||
use App\Configuration\CalendarConfiguration;
|
||||
use App\Timesheet\TrackingModeService;
|
||||
use App\Timesheet\UserDateTimeFactory;
|
||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Security;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
|
||||
@@ -28,14 +27,14 @@ class CalendarController extends AbstractController
|
||||
/**
|
||||
* @Route(path="/", name="calendar", methods={"GET"})
|
||||
*/
|
||||
public function userCalendar(CalendarConfiguration $configuration, UserDateTimeFactory $dateTime, TrackingModeService $service)
|
||||
public function userCalendar(CalendarConfiguration $configuration, TrackingModeService $service)
|
||||
{
|
||||
$mode = $service->getActiveMode();
|
||||
|
||||
return $this->render('calendar/user.html.twig', [
|
||||
'config' => $configuration,
|
||||
'google' => $this->getGoogleSources($configuration),
|
||||
'now' => $dateTime->createDateTime(),
|
||||
'now' => $this->getDateTimeFactory()->createDateTime(),
|
||||
'is_punch_mode' => !$mode->canEditDuration() && !$mode->canEditBegin() && !$mode->canEditEnd()
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user