1 | <?php |
||
2 | |||
3 | namespace PiouPiou\RibsAdminBundle\Controller; |
||
4 | |||
5 | use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; |
||
6 | use Symfony\Component\Routing\Annotation\Route; |
||
7 | use Symfony\Component\HttpFoundation\Response; |
||
8 | |||
9 | class PageController extends AbstractController |
||
10 | { |
||
11 | /** |
||
12 | * @Route("/contents", name="ribsadmin_contents") |
||
13 | * @return Response |
||
14 | */ |
||
15 | public function index(): Response |
||
16 | { |
||
17 | $navigation = $this->getDoctrine()->getManager()->getRepository("RibsAdminBundle:Navigation")->findAllNavigationPage(); |
||
0 ignored issues
–
show
|
|||
18 | |||
19 | return $this->render('@RibsAdmin/page/index.html.twig', ["navigation" => $navigation]); |
||
20 | } |
||
21 | |||
22 | /** |
||
23 | * @Route("/contents/edit-page/{page_id}", name="ribsadmin_contents_edit_page") |
||
24 | * @param int $page_id |
||
25 | * @return Response |
||
26 | */ |
||
27 | public function editPage(int $page_id): Response |
||
28 | { |
||
29 | $em = $this->getDoctrine()->getManager(); |
||
30 | $navigation = $em->getRepository("RibsAdminBundle:Navigation")->findAllNavigationPage(); |
||
31 | $page = $em->getRepository("RibsAdminBundle:Page")->find($page_id); |
||
32 | |||
33 | return $this->render('@RibsAdmin/page/edit-page.html.twig', ["navigation" => $navigation, "page" => $page]); |
||
34 | } |
||
35 | } |
||
36 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.