/**
  *
  */
 private function init()
 {
     /**
      * Add all usual days off during weeks
      */
     $allUsualDaysOff = ActivityType::getAllUsualDaysOffAsDayConst();
     foreach ($allUsualDaysOff as $activityConstType => $weekDay) {
         if ($activityConstType != ActivityType::SCHOOL_USUALDAYOFF) {
             $this->scheduler->addWeekUsualDaysOff($weekDay, array('index' => $activityConstType));
         }
     }
     /**
      * Add all school years
      * @var \WCS\CantineBundle\Entity\SchoolYear $schoolYear
      */
     $schoolYears = $this->manager->getRepository('WCSCantineBundle:SchoolYear')->findAll();
     foreach ($schoolYears as $schoolYear) {
         $period = new Period($schoolYear->getDateStart(), $schoolYear->getDateEnd());
         $this->scheduler->addYearPeriod($period);
     }
     /**
      * Add all school holidays
      * @var \WCS\CantineBundle\Entity\SchoolHoliday $holiday
      */
     $schoolYearHolidays = $this->manager->getRepository('WCSCantineBundle:SchoolHoliday')->findAll();
     foreach ($schoolYearHolidays as $holiday) {
         $dateStart = $holiday->getDateStart();
         $period = new Period($dateStart, $holiday->getDateEnd(), $holiday->getDescription());
         $this->scheduler->addPeriodDayOffs($period);
     }
     /**
      * Add all days off
      * @var \DateTime[] $datesDaysOff
      */
     $datesDaysOff = $this->manager->getRepository('WCSCantineBundle:Feries')->findListDatesWithin($this->scheduler->getFirstYearPeriod()->getFirstDate(), $this->scheduler->getLastYearPeriod()->getLastDate());
     $this->scheduler->addDatesDayOff($datesDaysOff);
 }