Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit350e78a

Browse files
committed
enable HTTP method overrides ASAP when using the HTTP cache
1 parent4b312ab commit350e78a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

‎src/Symfony/Bundle/FrameworkBundle/HttpCache/HttpCache.php‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
useSymfony\Component\HttpKernel\HttpCache\Store;
1919
useSymfony\Component\HttpKernel\HttpCache\StoreInterface;
2020
useSymfony\Component\HttpKernel\HttpCache\SurrogateInterface;
21+
useSymfony\Component\HttpKernel\HttpKernelInterface;
2122
useSymfony\Component\HttpKernel\KernelInterface;
2223

2324
/**
@@ -62,6 +63,15 @@ public function __construct(KernelInterface $kernel, $cache = null, SurrogateInt
6263
parent::__construct($kernel,$this->createStore(),$this->createSurrogate(),array_merge($this->options,$this->getOptions()));
6364
}
6465

66+
publicfunctionhandle(Request$request,int$type = HttpKernelInterface::MASTER_REQUEST,bool$catch =true)
67+
{
68+
if ($this->kernel->getContainer()->getParameter('kernel.http_method_override')) {
69+
Request::enableHttpMethodParameterOverride();
70+
}
71+
72+
returnparent::handle($request,$type,$catch);
73+
}
74+
6575
/**
6676
* {@inheritdoc}
6777
*/

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp