I have this event listener class :
<?php
namespace Vdv\TimesheetsBundle\Event;
use Oneup\UploaderBundle\Event\PostPersistEvent;
use Symfony\Component\HttpFoundation\Request;
class UploadListener {
public function __construct($doctrine) {
$this->doctrine = $doctrine;
}
public function onUpload(PostPersistEvent $event) {
$request = $event->getRequest();
}
}
and this url :
http://localhost/vdvinfra/web/app_dev.php/timesheet/add/1/252
i want to get some parameters(id's) from that url. How can i get it in a event listener class. The variable $_GET is empty when i var_dump this...
Thanks!