PHRAS-2327_report_refacto_41

This commit is contained in:
Filip Vilic
2018-12-11 13:15:03 +01:00
parent 35d0b0fad2
commit eec09e55cd
58 changed files with 13589 additions and 8931 deletions

View File

@@ -9,6 +9,7 @@
*/
namespace Alchemy\Phrasea\Report\Controller;
use Alchemy\Phrasea\Controller\Controller;
use Alchemy\Phrasea\Report\Report;
use Alchemy\Phrasea\Report\ReportConnections;
use Alchemy\Phrasea\Report\ReportDownloads;
@@ -16,10 +17,11 @@ use Alchemy\Phrasea\Report\ReportFactory;
use Alchemy\Phrasea\Report\ReportRecords;
use Doctrine\Common\Collections\ArrayCollection;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\StreamedResponse;
class ProdReportController
class ProdReportController extends Controller
{
private static $mapFromExtension = [
'csv' => [
@@ -55,6 +57,19 @@ class ProdReportController
$this->acl = $acl;
}
/**
* route prod/report/connections
*
* @param Request $request
* @return Response
*/
public function indexAction(Request $request)
{
return new Response($this->render('prod/report/index.html.twig', [
'truc' => "hello"
]));
}
/**
* route prod/report/connections
*