Skip to content

Commit

Permalink
bug #505 Implement ContainerAwareInterface in ProfilerController (hacfi)
Browse files Browse the repository at this point in the history
This PR was merged into the 1.6.x-dev branch.

Discussion
----------

Implement ContainerAwareInterface in ProfilerController

See #500 #501

Didn’t want to wait so created a new PR myself.

Commits
-------

dfdd2e0 Implement ContainerAwareInterface in ProfilerController
  • Loading branch information
stof committed Dec 17, 2015
2 parents 44b1ca7 + dfdd2e0 commit 1b7261a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions Controller/ProfilerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,30 @@

use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Platforms\SQLServerPlatform;
use Symfony\Component\DependencyInjection\ContainerAware;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\HttpFoundation\Response;

/**
* ProfilerController.
*
* @author Christophe Coevoet <[email protected]>
*/
class ProfilerController extends ContainerAware
class ProfilerController implements ContainerAwareInterface
{
/**
* @var ContainerInterface
*/
private $container;

/**
* {@inheritDoc}
*/
public function setContainer(ContainerInterface $container = null)
{
$this->container = $container;
}

/**
* Renders the profiler panel for the given token.
*
Expand Down

0 comments on commit 1b7261a

Please sign in to comment.