This repo is created for the SplendidBear Websites' portfolio. https://www.splendidbear.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
814B

  1. <?php
  2. namespace App\Controller;
  3. use App\Entity\Project;
  4. use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
  5. use Symfony\Component\HttpFoundation\Response;
  6. /**
  7. * Class DefaultController
  8. *
  9. * @package App\Controller
  10. * @author system7 <https://www.laszlolang.com>
  11. */
  12. class DefaultController extends AbstractController
  13. {
  14. /**
  15. * Default action for homepage
  16. *
  17. * @return Response
  18. */
  19. public function index()
  20. {
  21. return $this->render('default/index.html.twig', array(
  22. 'project' => $this->getDoctrine()
  23. ->getRepository(Project::class)
  24. ->findAll(),
  25. ));
  26. }
  27. /**
  28. * Counter-Strike documentation
  29. */
  30. public function cs()
  31. {
  32. return $this->render('default/cs.html.twig', array());
  33. }
  34. }