-
-
Notifications
You must be signed in to change notification settings - Fork 57
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
Class-named services cannot be used for hooks #1176
Comments
|
Nope, |
|
We have added the check to prevent services from accidentally overwriting existing classes, which would then no longer be loaded. So no, |
|
I think the only and major issue we had initially was with our |
|
I think the best approach is to check for a backslash in the name. if ($container->has($name) && (false !== strpos($name, '\') || !class_exist($name)) {
}
|
|
Fixed in 9361ea9. |
…1176) Description ----------- PR for contao/contao#1079 I think it's better to disable it for all non-Contao requests. Not just the FE ones. Commits ------- 35868fd6 Disable MakeResponsePrivateListener for non-Contao requests
Due to the
class_existscheck inSystem::importStatic(andSystem::import) it is not possible to register a hook listener service if the class name is used as service name. Do we really need thatclass_existscheck?The text was updated successfully, but these errors were encountered: