Search code examples
symfonyknpmenubundle

Symfony2 bundle service separation


I am trying to implement custom menus for the backend and frontend of the site. Backend and frontend are in the separate bundles. The problem is, it seems that their services are shared (let's say I define one service (knp menu voter) in admin bundle, and it is still active in site bundle). Is this expected behaviour or am I missing something?


Solution

  • It's OK. From docs:

    A service is usually used "globally" [..]

    Read more in Glossary documentation.