Skip to content

Commit e9d18c0

Browse files
author
pzaloznyi
committed
Merge pull request #238 from Nek-/follow-knpmenu
Updated to KnpMenu 2.0.0
2 parents e6a0756 + cb42b54 commit e9d18c0

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## 2.0.0 (2013-XX-XX)
1+
## 2.0.0 (2014-07-18)
22

33
* Updated for changes done in KnpMenu beta
44

Resources/doc/index.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,7 @@ Add on composer.json (see http://getcomposer.org/)
3434

3535
"require" : {
3636
// ...
37-
"knplabs/knp-menu": "2.0.*@dev",
38-
"knplabs/knp-menu-bundle": "2.0.*@dev"
37+
"knplabs/knp-menu-bundle": "~2.0"
3938
}
4039

4140
#### Method b) Using the `deps` file (symfony 2.0 pattern)

Tests/EventListener/VoterInitializerListenerTest.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public function testHandleSubRequest()
1717
->method('getRequestType')
1818
->will($this->returnValue(HttpKernelInterface::SUB_REQUEST));
1919

20-
$voter = $this->getMockBuilder('Knp\Menu\Silex\Voter\RouteVoter')
20+
$voter = $this->getMockBuilder('Knp\Menu\Matcher\Voter\RouteVoter')
2121
->disableOriginalConstructor()
2222
->getMock();
2323
$voter->expects($this->never())
@@ -43,7 +43,7 @@ public function testHandleMasterRequest()
4343
->method('getRequest')
4444
->will($this->returnValue($request));
4545

46-
$voter = $this->getMockBuilder('Knp\Menu\Silex\Voter\RouteVoter')
46+
$voter = $this->getMockBuilder('Knp\Menu\Matcher\Voter\RouteVoter')
4747
->disableOriginalConstructor()
4848
->getMock();
4949
$voter->expects($this->once())

composer.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
}
2020
],
2121
"require": {
22-
"knplabs/knp-menu": "~2.0, >=2.0.0-beta1",
22+
"knplabs/knp-menu": "~2.0",
2323
"symfony/framework-bundle": "~2.0"
2424
},
2525
"autoload": {

0 commit comments

Comments
 (0)