for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Braunstetter\MenuBundle\Test\app\src\Controller;
use Symfony\Component\HttpFoundation\Response;
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Error\SyntaxError;
class TestController
{
private Environment $twig;
/**
* @param Environment $twig
*/
public function __construct(Environment $twig)
$this->twig = $twig;
}
* @throws SyntaxError
* @throws RuntimeError
* @throws LoaderError
public function index($name): Response
return (new Response())
->setContent($this->twig->render('test.html.twig', ['name' => $name]));
public function levelOneRoute(): Response
->setContent($this->twig->render('test.html.twig'));
public function levelTwoRoute(): Response
public function levelThreeRoute(): Response