This repository was archived by the owner on Sep 16, 2021. It is now read-only.
This repository was archived by the owner on Sep 16, 2021. It is now read-only.
[DX] Allow exceptions to be thrown during PhpcrProvider::has
#254
Open
Description
If the provider cannot find the menu document then the error is thrown back to KnpMenu ChainProvider and the next provider is tried.
When all providers fail you get a rather upaque message:
The menu "pages" is not defined.
PhpcrMenuProvider::has
needs to return false
if the document does not exist, but currently it will return false
if f.e. the document does exist but does not implement the NodeInterface
.
It could be taken for granted that if the user has defined the menu base path to be /cms/menu
then if a document exists at /cmf/menu/foo
then they intended that foo
was the menu root.
Metadata
Metadata
Assignees
Labels
No labels