<?php

/**
 * Created by PhpStorm.
 * User: ondra
 * Date: 11.10.17
 * Time: 8:04.
 */

namespace KupShop\ContentBundle\Controller;

use KupShop\ContentBundle\View\Error404View;
use Symfony\Bundle\FrameworkBundle\Controller\AbstractController;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\Routing\Annotation\Route;

class ErrorController extends AbstractController
{
    /**
     * @return Response
     *
     * @Route("/404/")
     */
    public function error404Action(Request $request, Error404View $view)
    {
        $view->setRequest($request);

        return $view->getResponse();
    }
}
