Removed dump() calls in the Controllers.

They were only meant for testing the entities.
This commit is contained in:
Jan Böhmer 2019-02-25 13:17:50 +01:00
parent 0063fd68c8
commit fd066dea64
2 changed files with 1 additions and 15 deletions

View file

@ -19,13 +19,6 @@ class HomepageController extends AbstractController
*/
function homepage()
{
$repo = $this->getDoctrine()->getRepository(Part::class);
/** @var StructuralDBElement $attachment */
$attachment = $repo->find(1);
dump($attachment);
$response = "";
return $this->render('base.html.twig');
}
}

View file

@ -20,15 +20,8 @@ class PartController extends AbstractController
* @Route("/part/{id}/info")
* @Route("/part/{id}")
*/
function show(int $id)
function show(Part $part)
{
$repo = $this->getDoctrine()->getRepository(Part::class);
/** @var Part $part */
$part = $repo->find($id);
dump($part);
return $this->render('show_part_info.html.twig',
[
"part" => $part