Skip to content

[2.3] [FrameworkBundle] [Serializer] Loads the Serializer component as a service in the Framework Bundle #6815

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 23, 2013

Conversation

loalf
Copy link
Contributor

@loalf loalf commented Jan 20, 2013

This PR is the same as
#5347

but since I am struggling to squash all the commits I better create a new one. Sorry for the inconveniences, :)

@@ -112,6 +112,10 @@ public function load(array $configs, ContainerBuilder $container)

$this->registerAnnotationsConfiguration($config['annotations'], $container, $loader);

if (isset($config['serializer'])) {
$this->registerSerializerConfiguration($config['serializer'], $loader);
Copy link
Contributor

Choose a reason for hiding this comment

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

There is no point for such method, that do nothing more than one if check...

Copy link
Member

Choose a reason for hiding this comment

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

I agree

@peterhorne
Copy link

Thanks loalf! Any news on if / when this will be merged in?

@loalf
Copy link
Contributor Author

loalf commented Feb 11, 2013

Thanks @peterhone. You better ask @fabpot or someone in the core.

->children()
->arrayNode('serializer')
->info('serializer configuration')
->canBeDisabled()
Copy link
Member

Choose a reason for hiding this comment

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

I would make it disabled by default. So, it should be canbeenabled here.

@loalf
Copy link
Contributor Author

loalf commented Mar 23, 2013

@fabpot changed

fabpot added a commit that referenced this pull request Mar 23, 2013
This PR was merged into the master branch.

Discussion
----------

[2.3] [FrameworkBundle] [Serializer] Loads the Serializer component as a service in the Framework Bundle

This PR is the same as
#5347

but since I am struggling to squash all the commits I better create a new one. Sorry for the inconveniences, :)

Commits
-------

b4e4844 Add the serializer service
@fabpot fabpot merged commit b4e4844 into symfony:master Mar 23, 2013
@loalf loalf deleted the add_serializer_service branch February 3, 2014 17:24
fabpot added a commit that referenced this pull request Dec 12, 2014
…e by default (dunglas)

This PR was submitted for the master branch but it was merged into the 2.7 branch instead (closes #12295).

Discussion
----------

[FrameworkBundle] make GetSetMethodNormalizer available by default

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | very limited
| Deprecations? | no
| Tests pass?   | yes
| License       | MIT
| Doc PR        | not yet

The `GetSetMethodNormalizer` has not been enabled by default in #6815 because it was broken by design. Since #12098 has been merged, circular references are handled and that normalizer cannot breaks applications.
This PR makes that normalizer automatically available when the serializer is enabled. To keep BC, I've set a "high" priority for this service (higher than the default `0`).

Commits
-------

4f0aa61 [FrameworkBundle] make GetSetMethodNormalizer available by default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants