8000 minor #25041 [Form] Rename `FormConfigBuilder::$nativeRequestProcesso… · symfony/symfony@efd9a5a · GitHub
[go: up one dir, main page]

Skip to content

Commit efd9a5a

Browse files
minor #25041 [Form] Rename FormConfigBuilder::$nativeRequestProcessor private variable to ::$nativeRequestHandler (issei-m)
This PR was merged into the 2.7 branch. Discussion ---------- [Form] Rename `FormConfigBuilder::$nativeRequestProcessor` private variable to `::$nativeRequestHandler` | Q | A | ------------- | --- | Branch? |2.7 | Bug fix? | no | New feature? | no <!-- don't forget to update src/**/CHANGELOG.md files --> | BC breaks? | no | Deprecations? | no <!-- don't forget to update UPGRADE-*.md files --> | Tests pass? | Not confirmed, but the changes are completely minor | Fixed tickets | - | License | MIT | Doc PR | - I guess the term "processor" had been used until [this PR comes](#7732), but hadn't been renamed properly at the time. And I think "handler" sounds more relevant to me anyway. Commits ------- a35d4f8 [Form] Rename `FormConfigBuilder::$nativeRequestProcessor` private variable to `::$nativeRequestHandler`
2 parents 57a9e5e + a35d4f8 commit efd9a5a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Symfony/Component/Form/FormConfigBuilder.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class FormConfigBuilder implements FormConfigBuilderInterface
3232
*
3333
* @var NativeRequestHandler
3434
*/
35-
private static $nativeRequestProcessor;
35+
private static $nativeRequestHandler;
3636

3737
/**
3838
* The accepted request methods.
@@ -511,10 +511,10 @@ public function getMethod()
511511
public function getRequestHandler()
512512
{
513513
if (null === $this->requestHandler) {
514-
if (null === self::$nativeRequestProcessor) {
515-
self::$nativeRequestProcessor = new NativeRequestHandler();
514+
if (null === self::$nativeRequestHandler) {
515+
self::$nativeRequestHandler = new NativeRequestHandler();
516516
}
517-
$this->requestHandler = self::$nativeRequestProcessor;
517+
$this->requestHandler = self::$nativeRequestHandler;
518518
}
519519

520520
return $this->requestHandler;

0 commit comments

Comments
 (0)
0