Avoiding circular references with FOSRest and Symfony 2.8
I got stuck for quite a while thinking I had already installed JMSSerializer and had therefore been perplexed by the result of circular references breaking the output of an API I was building for (yet another) technical test.
The problem went away, leaving me in a place of happy excitement over the level of control that might be possible using the exclusion strategies available with JMSSerializer's annotation options.
As a result of using the symfony app installer I was left with a composer.json that specified a platform version as so:
"platform": {
"php": "5.3.9"
}
This however prevented JMSSerializer bundle from being installed and then more of a surprise was that no additional configuration is truly needed, once enabled in AppKernel.php. This is awesome but I can only imagine that Symfony 2.8 comes with a default legacy platform setting to help with the LTS effort for this version of the framework. It's a shame this isn't a more widely documented fact.