Skip to content
This repository has been archived by the owner on Sep 16, 2021. It is now read-only.

Question #290

Closed
mssimi opened this issue May 17, 2017 · 3 comments
Closed

Question #290

mssimi opened this issue May 17, 2017 · 3 comments

Comments

@mssimi
Copy link

mssimi commented May 17, 2017

Hey, why is loader checking instance twice?

https://github.com/symfony-cmf/menu-bundle/blob/master/src/Loader/VotingNodeLoader.php#L45
https://github.com/symfony-cmf/menu-bundle/blob/master/src/Loader/VotingNodeLoader.php#L74

It goes throught $this->supports anyway, coz of recursion. Or is there any reason why u want to skip throwing exception?

@dbu
Copy link
Member

dbu commented May 18, 2017 via email

@mssimi
Copy link
Author

mssimi commented May 18, 2017

Sounds weird to me, why combing menu-items and non-menu items in menu. I dont see real usage, but whatever:)

@dbu
Copy link
Member

dbu commented May 19, 2017

i would not recommend it, but when it happens, whether by accident or on purpose, the site should not break.

@dbu dbu closed this as completed May 19, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants