Skip to content

[HttpFoundation][HttpKernel] Rename master request to main request #40536

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 22, 2021

Conversation

derrabus
Copy link
Member

Q A
Branch? 5.x
Bug fix? no
New feature? no
Deprecations? yes
Tickets Fix #37509
License MIT
Doc PR TODO

Let's find a better term for "master request" because of the reasons described in #37509 (comment). This PR proposes the term main request instead.

@carsonbot carsonbot changed the title [HttpKernel][HttpFoundation] Rename master request to main request [HttpFoundation][HttpKernel] Rename master request to main request Mar 22, 2021
@nicolas-grekas nicolas-grekas added this to the 5.x milestone Mar 22, 2021
@derrabus derrabus force-pushed the improvement/main-request branch from 5011a93 to 1650c93 Compare March 22, 2021 11:19
@derrabus derrabus force-pushed the improvement/main-request branch from acb6700 to b15deb0 Compare March 22, 2021 12:52
@derrabus
Copy link
Member Author

derrabus commented Mar 22, 2021

As discussed with @nicolas-grekas via Slack: We decided to go with a soft deprecation of the constant for now. The reason is that it would get unreasonably hard to implement HttpKernelInterface in a way that is compatible with Symfony 4.4 and 5.3 without triggering the deprecation, because the constant is part of the interface here.

public function handle(Request $request, int $type = self::MASTER_REQUEST, bool $catch = true);

@derrabus derrabus force-pushed the improvement/main-request branch from b15deb0 to 1fc2a04 Compare March 22, 2021 13:15
@Nyholm
Copy link
Member

Nyholm commented Mar 22, 2021

Thank you for your work

@Nyholm Nyholm merged commit 8c1f3ac into symfony:5.x Mar 22, 2021
@derrabus derrabus deleted the improvement/main-request branch March 22, 2021 13:45
derrabus added a commit that referenced this pull request Mar 22, 2021
…olm)

This PR was squashed before being merged into the 5.3-dev branch.

Discussion
----------

[WebLink] Remove symfony/http-foundation dependency

| Q             | A
| ------------- | ---
| Branch?       | 5.x
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #40536
| License       | MIT
| Doc PR        |

Both me and @derrabus overlooked this.

Commits
-------

415c2a0 [WebLink] Remove symfony/http-foundation dependency
@fabpot fabpot mentioned this pull request Apr 18, 2021
FabianSchmick added a commit to webfactory/slug-validation-bundle that referenced this pull request Apr 15, 2024
Because of the introduction of main instead of master request symfony/symfony#40536
morawskim added a commit to morawskim/sf-utils that referenced this pull request Apr 25, 2024
* Symfony 6 renamed master request to main request (symfony/symfony#40536)

* PasswordEncoder not exists anymore, use PasswordHasher

* Symfony 6 has own InMemory user provider
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[RFC] Rename master request
5 participants