Skip to content

Commit 259b27f

Browse files
committed
Include generic stub for AbtractController
1 parent 3afb35d commit 259b27f

File tree

2 files changed

+62
-0
lines changed

2 files changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Bundle\FrameworkBundle\Controller;
13+
14+
use Psr\Container\ContainerInterface;
15+
use Psr\Link\LinkInterface;
16+
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
17+
use Symfony\Component\DependencyInjection\ParameterBag\ContainerBagInterface;
18+
use Symfony\Component\Form\Extension\Core\Type\FormType;
19+
use Symfony\Component\Form\FormBuilderInterface;
20+
use Symfony\Component\Form\FormFactoryInterface;
21+
use Symfony\Component\Form\FormInterface;
22+
use Symfony\Component\HttpFoundation\BinaryFileResponse;
23+
use Symfony\Component\HttpFoundation\Exception\SessionNotFoundException;
24+
use Symfony\Component\HttpFoundation\JsonResponse;
25+
use Symfony\Component\HttpFoundation\RedirectResponse;
26+
use Symfony\Component\HttpFoundation\Request;
27+
use Symfony\Component\HttpFoundation\RequestStack;
28+
use Symfony\Component\HttpFoundation\Response;
29+
use Symfony\Component\HttpFoundation\ResponseHeaderBag;
30+
use Symfony\Component\HttpFoundation\Session\FlashBagAwareSessionInterface;
31+
use Symfony\Component\HttpFoundation\StreamedResponse;
32+
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
33+
use Symfony\Component\HttpKernel\HttpKernelInterface;
34+
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
35+
use Symfony\Component\Routing\RouterInterface;
36+
use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface;
37+
use Symfony\Component\Security\Core\Authorization\AuthorizationCheckerInterface;
38+
use Symfony\Component\Security\Core\Exception\AccessDeniedException;
39+
use Symfony\Component\Security\Core\User\UserInterface;
40+
use Symfony\Component\Security\Csrf\CsrfToken;
41+
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
42+
use Symfony\Component\Serializer\SerializerInterface;
43+
use Symfony\Component\WebLink\EventListener\AddLinkHeaderListener;
44+
use Symfony\Component\WebLink\GenericLinkProvider;
45+
use Symfony\Contracts\Service\Attribute\Required;
46+
47+
abstract class AbstractController
48+
{
49+
/**
50+
* @template T
51+
*
52+
* @param T $data
53+
* @param int $status The HTTP status code (200 "OK" by default)
54+
* @param mixed[] $headers
55+
* @param mixed[] $context
56+
*
57+
* @return JsonResponse<T>
58+
*/
59+
protected function json(mixed $data, int $status = 200, array $headers = [], array $context = []): JsonResponse
60+
{
61+
}
62+
}
File renamed without changes.

0 commit comments

Comments
 (0)