Skip to content
This repository has been archived by the owner on Dec 18, 2020. It is now read-only.

Conditional services (e.g. only for site, only for admin) #114

Closed
dantleech opened this issue Jul 25, 2014 · 1 comment · Fixed by sulu/sulu#604
Closed

Conditional services (e.g. only for site, only for admin) #114

dantleech opened this issue Jul 25, 2014 · 1 comment · Fixed by sulu/sulu#604

Comments

@dantleech
Copy link
Contributor

We can implement tags to indicate if a service should be loaded in a given context, e.g.

<service id="request_analyzer">
     <tag name-"sulu_core.context" context="frontend" />
</service>

This would be useful for the following services:

  • RequestAnalyzer
  • PortalRouteProvider
  • SetThemeListener
@dantleech
Copy link
Contributor Author

The Refactoring Kernel PR will inject the site context into the container. Which will help this PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants