Attribute
2 years ago
Bundle
1 year ago
CacheClearer
2 years ago
CacheWarmer
1 year ago
Config
1 year ago
Controller
1 year ago
ControllerMetadata
1 year ago
DataCollector
1 year ago
Debug
1 year ago
DependencyInjection
1 year ago
Event
1 year ago
EventListener
1 year ago
Exception
1 year ago
Fragment
1 year ago
HttpCache
1 year ago
Log
1 year ago
Profiler
1 year ago
Resources
2 years ago
HttpClientKernel.php
1 year ago
HttpKernel.php
1 year ago
HttpKernelBrowser.php
1 year ago
HttpKernelInterface.php
1 year ago
Kernel.php
1 month ago
KernelEvents.php
2 years ago
KernelInterface.php
2 years ago
LICENSE
2 years ago
README.md
2 years ago
RebootableInterface.php
2 years ago
TerminableInterface.php
2 years ago
UriSigner.php
1 year ago
HttpKernelInterface.php
45 lines
| 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 | namespace Matomo\Dependencies\Symfony\Component\HttpKernel; |
| 12 | |
| 13 | use Matomo\Dependencies\Symfony\Component\HttpFoundation\Request; |
| 14 | use Matomo\Dependencies\Symfony\Component\HttpFoundation\Response; |
| 15 | /** |
| 16 | * HttpKernelInterface handles a Request to convert it to a Response. |
| 17 | * |
| 18 | * @author Fabien Potencier <fabien@symfony.com> |
| 19 | */ |
| 20 | interface HttpKernelInterface |
| 21 | { |
| 22 | public const MAIN_REQUEST = 1; |
| 23 | public const SUB_REQUEST = 2; |
| 24 | /** |
| 25 | * @deprecated since symfony/http-kernel 5.3, use MAIN_REQUEST instead. |
| 26 | * To ease the migration, this constant won't be removed until Symfony 7.0. |
| 27 | */ |
| 28 | public const MASTER_REQUEST = self::MAIN_REQUEST; |
| 29 | /** |
| 30 | * Handles a Request to convert it to a Response. |
| 31 | * |
| 32 | * When $catch is true, the implementation must catch all exceptions |
| 33 | * and do its best to convert them to a Response instance. |
| 34 | * |
| 35 | * @param int $type The type of the request |
| 36 | * (one of HttpKernelInterface::MAIN_REQUEST or HttpKernelInterface::SUB_REQUEST) |
| 37 | * @param bool $catch Whether to catch exceptions or not |
| 38 | * |
| 39 | * @return Response |
| 40 | * |
| 41 | * @throws \Exception When an Exception occurs during processing |
| 42 | */ |
| 43 | public function handle(Request $request, int $type = self::MAIN_REQUEST, bool $catch = \true); |
| 44 | } |
| 45 |