| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 25 | public function generate($name, array $parameters, $absolute = false) |
||
| 26 | { |
||
| 27 | // If is it at least Symfony 2.8 and $absolute is passed as boolean |
||
| 28 | if (SymfonyUrlGeneratorInterface::ABSOLUTE_PATH === 1 && is_bool($absolute)) { |
||
| 29 | $absolute = $absolute |
||
| 30 | ? SymfonyUrlGeneratorInterface::ABSOLUTE_URL |
||
| 31 | : SymfonyUrlGeneratorInterface::ABSOLUTE_PATH |
||
| 32 | ; |
||
| 33 | } |
||
| 34 | |||
| 35 | return $this->urlGenerator->generate($name, $parameters, $absolute); |
||
| 36 | } |
||
| 37 | } |
||
| 38 |