Navigation Menu

Skip to content

Commit

Permalink
Fix ContainerAware deprecation notice
Browse files Browse the repository at this point in the history
  • Loading branch information
wouterj committed Nov 13, 2015
1 parent 135044b commit cca603c
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions Tests/Stubs/Menu/ContainerAwareBuilder.php
Expand Up @@ -3,10 +3,18 @@
namespace Knp\Bundle\MenuBundle\Tests\Stubs\Menu;

use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;

class ContainerAwareBuilder extends ContainerAware
class ContainerAwareBuilder implements ContainerAwareInterface
{
private $container;

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

public function mainMenu(FactoryInterface $factory)
{
// Check that the container is really set.
Expand Down

0 comments on commit cca603c

Please sign in to comment.