mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Removed dump() calls in the Controllers.
They were only meant for testing the entities.
This commit is contained in:
parent
0063fd68c8
commit
fd066dea64
2 changed files with 1 additions and 15 deletions
|
@ -19,13 +19,6 @@ class HomepageController extends AbstractController
|
||||||
*/
|
*/
|
||||||
function homepage()
|
function homepage()
|
||||||
{
|
{
|
||||||
$repo = $this->getDoctrine()->getRepository(Part::class);
|
|
||||||
|
|
||||||
/** @var StructuralDBElement $attachment */
|
|
||||||
$attachment = $repo->find(1);
|
|
||||||
|
|
||||||
dump($attachment);
|
|
||||||
$response = "";
|
|
||||||
return $this->render('base.html.twig');
|
return $this->render('base.html.twig');
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -20,15 +20,8 @@ class PartController extends AbstractController
|
||||||
* @Route("/part/{id}/info")
|
* @Route("/part/{id}/info")
|
||||||
* @Route("/part/{id}")
|
* @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',
|
return $this->render('show_part_info.html.twig',
|
||||||
[
|
[
|
||||||
"part" => $part
|
"part" => $part
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue