kristofvc/qa-test

View on GitHub
src/AppBundle/Controller/DefaultController.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace AppBundle\Controller;

use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use SensioLabs\Security\Exception\RuntimeException;
use Symfony\Bundle\FrameworkBundle\Controller\Controller;

class DefaultController extends Controller
{
    /**
     * @Route("/", name="homepage")
     */
    public function indexAction()
    {
        return $this->render('default/index.html.twig');
    }

    /**
     * @Route("/error", name="error")
     */
    public function errorAction()
    {
        throw new RuntimeException('Not allowed');
    }
}