diff --git a/Controller/ProfilerController.php b/Controller/ProfilerController.php index 1b9b86a57..ae72420cb 100644 --- a/Controller/ProfilerController.php +++ b/Controller/ProfilerController.php @@ -16,7 +16,8 @@ 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; /** @@ -24,8 +25,21 @@ * * @author Christophe Coevoet */ -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. *