Skip to content

Commit

Permalink
updates example required dependencies to support symfony3
Browse files Browse the repository at this point in the history
  • Loading branch information
l3pp4rd committed Aug 2, 2017
1 parent 003873a commit 63be3bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
20 changes: 10 additions & 10 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,23 @@

"require": {
"php": ">=5.4.0",
"symfony/framework-bundle": "~2.6|~3.0",
"doctrine/orm": "~2.4"
"symfony/framework-bundle": "^2.6|^3.0",
"doctrine/orm": "^2.4"
},

"require-dev": {
"php": ">=5.6.0",
"ext-pdo": "*",
"ext-pdo_sqlite": "*",

"symfony/symfony": "~2.7.0|~3.0",
"doctrine/orm": "~2.5.0",
"doctrine/doctrine-bundle": "~1.5",
"doctrine/doctrine-fixtures-bundle": "~2.2.0",
"sensio/framework-extra-bundle": "~3.0.9",
"knplabs/knp-menu-bundle": "~2.0",
"knplabs/knp-time-bundle": "~1.3",
"data-dog/pager-bundle": "~0.2",
"symfony/symfony": "^3.0",
"doctrine/orm": "^2.5",
"doctrine/doctrine-bundle": "^1.6",
"doctrine/doctrine-fixtures-bundle": "^2.2",
"sensio/framework-extra-bundle": "^3.0.2",
"knplabs/knp-menu-bundle": "^2.0",
"knplabs/knp-time-bundle": "^1.3",
"data-dog/pager-bundle": "^0.2",

"phpunit/phpunit": "~4.7.0"
},
Expand Down
7 changes: 5 additions & 2 deletions example/src/AppBundle/Menu/MenuBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,17 @@
namespace AppBundle\Menu;

use Knp\Menu\FactoryInterface;
use Symfony\Component\DependencyInjection\ContainerAware;
use Symfony\Component\DependencyInjection\ContainerAwareInterface;
use Symfony\Component\DependencyInjection\ContainerAwareTrait;
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
use Symfony\Component\Security\Core\User\UserInterface;
use Symfony\Component\Translation\TranslatorInterface;
use Symfony\Component\Security\Core\SecurityContextInterface;

class MenuBuilder extends ContainerAware
class MenuBuilder implements ContainerAwareInterface
{
use ContainerAwareTrait;

/**
* @param FactoryInterface $factory
* @return \Knp\Menu\ItemInterface
Expand Down

0 comments on commit 63be3bd

Please sign in to comment.