Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getModuleName != 'frontend' #1

Open
ededagic opened this issue Apr 13, 2015 · 1 comment
Open

getModuleName != 'frontend' #1

ededagic opened this issue Apr 13, 2015 · 1 comment

Comments

@ededagic
Copy link

Hi,

ich hab probiert, deinen modularen Ansatz für die Plugins umzusetzen. Unter anderem wird in der Bootstrap.php in der onStartDispatch funktion der Aufruf

if($args->getRequest()->getModuleName() != 'frontend') {
  return;
}

der Aufruf scheint aber nie frontend zu liefern, entweder backend oder null. Ist null quasi frontend ?

Beste Grüße,
Edin

@dnoegel
Copy link
Owner

dnoegel commented Apr 13, 2015

Hi,

ich kann es gerade nicht testen, könnte im Beispiel falsch sein. Dann kannst du einfach ein späteres Event registrieren - dann ist das Routing durchgelaufen und du kannst die entsprechenden Informationen aus dem Request-Objekt extrahieren.

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

No branches or pull requests

2 participants