-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
ReflectionException: Method Nette\DI\Container::createServiceFromStaticFactory() does not exist #314
Comments
dg
added a commit
that referenced
this issue
Apr 28, 2024
dg
added a commit
that referenced
this issue
Apr 28, 2024
dg
added a commit
that referenced
this issue
Apr 28, 2024
dg
added a commit
that referenced
this issue
Apr 28, 2024
dg
added a commit
that referenced
this issue
Apr 28, 2024
dg
added a commit
that referenced
this issue
Apr 28, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version: 3.2.1
Bug Description
The
Nette\DI\Container
allows the addition of a service as a static factory. All operations can handle this except theContainer::getByType
method, which fails when creating a reflection over a non-existent container method.Steps To Reproduce
Expected Behavior
There should be no exception when attempting to access a non-existent method.
Possible Solution
Use reflection of the method given in
$foo
di/src/DI/Container.php
Lines 261 to 262 in 9c4af52
Something like this:
The text was updated successfully, but these errors were encountered: