upgraded dependencies
This commit is contained in:
@@ -21,9 +21,15 @@ use Symfony\Component\HttpFoundation\Response;
|
||||
*/
|
||||
interface HttpKernelInterface
|
||||
{
|
||||
public const MASTER_REQUEST = 1;
|
||||
public const MAIN_REQUEST = 1;
|
||||
public const SUB_REQUEST = 2;
|
||||
|
||||
/**
|
||||
* @deprecated since symfony/http-kernel 5.3, use MAIN_REQUEST instead.
|
||||
* To ease the migration, this constant won't be removed until Symfony 7.0.
|
||||
*/
|
||||
public const MASTER_REQUEST = self::MAIN_REQUEST;
|
||||
|
||||
/**
|
||||
* Handles a Request to convert it to a Response.
|
||||
*
|
||||
@@ -31,12 +37,12 @@ interface HttpKernelInterface
|
||||
* and do its best to convert them to a Response instance.
|
||||
*
|
||||
* @param int $type The type of the request
|
||||
* (one of HttpKernelInterface::MASTER_REQUEST or HttpKernelInterface::SUB_REQUEST)
|
||||
* (one of HttpKernelInterface::MAIN_REQUEST or HttpKernelInterface::SUB_REQUEST)
|
||||
* @param bool $catch Whether to catch exceptions or not
|
||||
*
|
||||
* @return Response A Response instance
|
||||
* @return Response
|
||||
*
|
||||
* @throws \Exception When an Exception occurs during processing
|
||||
*/
|
||||
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = true);
|
||||
public function handle(Request $request, int $type = self::MAIN_REQUEST, bool $catch = true);
|
||||
}
|
||||
|
Reference in New Issue
Block a user