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.

Read more...

Getting current action from view component in symfony

 

$action =
  $this->getContext()->getActionStack()
  ->getLastEntry()->getActionInstance();
$action->redirect(''); // etc

Serving multiple Symfony apps from one project with one vhost

I have created this simple three step approach for a Symfony project to switch application contexts while respecting the desire to have a global project-wide config file, vhost and default mod_rewrite configuration.  

Read more...