Skip to content
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

[Form] Added ResetInterface to CachingFactoryDecorator #30597

Merged
merged 1 commit into from
Mar 20, 2019

Conversation

HeahDude
Copy link
Contributor

Q A
Branch? 4.2
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? yes
Fixed tickets #29259
License MIT
Doc PR ~

I don't know if this should be considered a feature and target master, but I tend to see it as a bug fix.

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Mar 19, 2019

Shouldn't we tag the corresponding service as kernel.reset?

@HeahDude
Copy link
Contributor Author

Done too. Thanks!

@@ -410,6 +411,11 @@ private function registerFormConfiguration(array $config, ContainerBuilder $cont
if (!class_exists(Translator::class)) {
$container->removeDefinition('form.type_extension.upload.validator');
}
if (!method_exists(CachingFactoryDecorator::class, 'reset')) {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So I guess this can be reverted when merged in master.

@fabpot
Copy link
Member

fabpot commented Mar 20, 2019

Thank you @HeahDude.

@fabpot fabpot merged commit 4ddf5a1 into symfony:4.2 Mar 20, 2019
fabpot added a commit that referenced this pull request Mar 20, 2019
…ahDude)

This PR was merged into the 4.2 branch.

Discussion
----------

[Form] Added ResetInterface to CachingFactoryDecorator

| Q             | A
| ------------- | ---
| Branch?       | 4.2
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | #29259
| License       | MIT
| Doc PR        | ~

I don't know if this should be considered a feature and target master, but I tend to see it as a bug fix.

Commits
-------

4ddf5a1 [Form] Added ResetInterface to CachingFactoryDecorator
@HeahDude HeahDude deleted the form/cache-decorator-reset branch March 20, 2019 08:22
@fabpot fabpot mentioned this pull request Apr 2, 2019
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.

6 participants