src/Controller/Admin/DashboardController.php
/**
     * @todo    Add all useful data for admin index.
     *
     * @Route("/dashboard", name="dashboard", methods="GET")
     */
@todo    Add all useful data for admin index.
@todo Add all useful data for admin index .
public function dashboard(OpinionRepository $opinionRepository): Response
    {
        return $this->render('admin/dashboard.html.twig', [
            'opinions' => $opinionRepository->findBy([], ['id' => 'DESC'], OpinionRepository::PAGE_SIZE)
        ]);
    }
public function dashboard ( OpinionRepository $ opinionRepository ) : Response { return $ this -> render ( 'admin/dashboard.html.twig' , [ 'opinions' => $ opinionRepository -> findBy ( [ ] , [ 'id' => 'DESC' ] , OpinionRepository :: PAGE_SIZE ) ] ) ; }
@todo    Add all useful data for admin index.
@todo Add all useful data for admin index .