Skip to content

Commit

Permalink
Add support for KnpMenu 3 (#46)
Browse files Browse the repository at this point in the history
<!-- THE PR TEMPLATE IS NOT AN OPTION. DO NOT DELETE IT, MAKE SURE YOU READ AND EDIT IT! -->

<!--
    Specify which issues will be fixed/closed.
    Remove it if this is not related.
-->

Closes #45 

## Subject

Allow KnpMenu 2 / 3.
  • Loading branch information
kodiakhq[bot] authored Jun 6, 2020
2 parents 1e54ac9 + 58bc144 commit 18dc30c
Show file tree
Hide file tree
Showing 3 changed files with 204 additions and 198 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
],
"require": {
"php": "^7.3",
"knplabs/knp-menu": "^2.1",
"knplabs/knp-menu": "^2.1 || ^3.1",
"sonata-project/block-bundle": "^4.0",
"symfony/config": "^4.2 || ^5.0",
"symfony/dependency-injection": "^4.2 || ^5.0",
Expand Down
10 changes: 0 additions & 10 deletions phpstan-baseline.neon
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,6 @@ parameters:
count: 1
path: tests/BundleIntegrationTest.php

-
message: "#^Parameter \\#1 \\$factory of class Core23\\\\MenuBundle\\\\Menu\\\\ConfigBuilder constructor expects Knp\\\\Menu\\\\FactoryInterface, object given\\.$#"
count: 7
path: tests/Menu/ConfigBuilderTest.php

-
message: "#^Parameter \\#2 \\$translator of class Core23\\\\MenuBundle\\\\Menu\\\\ConfigBuilder constructor expects Symfony\\\\Contracts\\\\Translation\\\\TranslatorInterface, object given\\.$#"
count: 7
path: tests/Menu/ConfigBuilderTest.php

-
message: "#^Parameter \\#1 \\$builder of class Core23\\\\MenuBundle\\\\Provider\\\\ConfigProvider constructor expects Core23\\\\MenuBundle\\\\Menu\\\\ConfigBuilderInterface, object given\\.$#"
count: 4
Expand Down
Loading

0 comments on commit 18dc30c

Please sign in to comment.