Inheritance: extends Flint\PimpleAware
Exemplo n.º 1
0
 /**
  * @see Symfony\Component\Routing\RouterInterface::generate()
  */
 public function generateUrl($name, array $parameters = array(), $reference = UrlGeneratorInterface::ABSOLUTE_PATH)
 {
     $course = $this->getCourse();
     if (!empty($course)) {
         $parameters['course'] = $course->getCode();
     }
     $session = $this->getSession();
     if (!empty($session)) {
         $parameters['id_session'] = $session->getId();
     }
     return parent::generateUrl($name, $parameters, $reference);
 }