| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | private function executeOnce() |
||
| 29 | {
|
||
| 30 | /** @var GameDate $gameDate */ |
||
| 31 | $gameDate = $this->getGameDateRepository()->findOneBy(array()); |
||
| 32 | |||
| 33 | $this->getContainer()->get('event_dispatcher')->dispatch(CoreEvents::PRE_WEEK_CHANGE, new GameDateEvent($gameDate));
|
||
| 34 | $gameDate->incrementWeek(); |
||
| 35 | $this->getContainer()->get('event_dispatcher')->dispatch(CoreEvents::POST_WEEK_CHANGE, new GameDateEvent($gameDate));
|
||
| 36 | $this->getEntityManager()->flush(); |
||
| 37 | } |
||
| 38 | } |
||
| 39 |