-
-
Notifications
You must be signed in to change notification settings - Fork 38
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
Fixed bug in sendNotificationMessage Hook processing #79
Conversation
The object had never been called in the former implementation
Looks good to me. |
|
@Toflar I can't reproduce why the previous implementation does not work. It works pretty fine here. But I don't mind using the importStatic method here. |
That would be great. If you need another reason ro use the proposed solution, it's contaos standard way to handle hook calls. |
So I can close this, right? It's not a bug and |
Why isn't importStatic a good choice? In addition I didn't see the way it's implemented right now in the whole core before. |
Because it's a useless dependency on |
Just thought about it one more time. The current implementation won't work with classes using the |
Uff, okay then we could change it (even though I don't like it) but not |
Mhm, I just gave it another try and it simply doesn't work. call_user_func doesn't call the created object's method. Would be kind, if someone could try to reproduce it with the module which doesn't work with the current implementation. It's one of our modules: https://github.com/heimrichhannot/contao-notification_center_plus (also available via composer). It adds css inlining and an additional salutation shorthand token. And addTokens in assigned as a hook in config.php doesn't work. When importing it static in the way I described above, it works like a charm. |
The object had never been called in the former implementation