<p dir="auto">It seems there are incompatibilities between the new Profiler and the previous one, regarding CSS frameworks.</p>
<p dir="auto">Indeed, the profiler breaks Bootstrap 3.x styles, and vice-versa (you can see on the screenshot below that the left side menu is not at the correct position):</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://cloud.githubusercontent.com/assets/465798/10477773/3e2e5018-7259-11e5-9de1-589a79ea53e4.png"><img src="https://cloud.githubusercontent.com/assets/465798/10477773/3e2e5018-7259-11e5-9de1-589a79ea53e4.png" alt="CsaGuzzleBundle and 2.8 profiler" style="max-width: 100%;"></a></p>
<p dir="auto">We should expect similar issues with other CSS frameworks.</p>
<p dir="auto">Hi !</p>
<p dir="auto">I've made a event listener that tries to switch controller under specific conditions. Here is how I set the new controller in the FilterControllerEvent:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="$event-&gt;setController(array(new DefaultController(),'badRefererAction'));"><pre class="notranslate"><code class="notranslate">$event-&gt;setController(array(new DefaultController(),'badRefererAction'));
</code></pre></div>
<p dir="auto">When these conditions are fullfilled, my controller action is called but it cannot render any template (below the controller code):</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="namespace MyCompany\MyBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

class DefaultController extends Controller
{
    /**
     * @Route(&quot;/badref&quot;, name=&quot;plugin_badreferer&quot;)
     * @Template()
     */
    public function badRefererAction()
    {
        return $this-&gt;render('MyCompanyMyBundle:Default:badReferer.html.twig', array());
    }
}"><pre class="notranslate"><code class="notranslate">namespace MyCompany\MyBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Template;

class DefaultController extends Controller
{
    /**
     * @Route("/badref", name="plugin_badreferer")
     * @Template()
     */
    public function badRefererAction()
    {
        return $this-&gt;render('MyCompanyMyBundle:Default:badReferer.html.twig', array());
    }
}
</code></pre></div>
<p dir="auto">as it crashes with the following error:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="FatalErrorException: Error: Call to a member function get() on a non-object in E:\workspace_web\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Controller\Controller.php line 106"><pre class="notranslate"><code class="notranslate">FatalErrorException: Error: Call to a member function get() on a non-object in E:\workspace_web\Symfony\vendor\symfony\symfony\src\Symfony\Bundle\FrameworkBundle\Controller\Controller.php line 106
</code></pre></div>
<p dir="auto">What is the problem here?</p>