-
Notifications
You must be signed in to change notification settings - Fork 34
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
Some improvements #6
Comments
Cache
Inject Annotation
use Ray\Di\Di\Inject;
use Doctrine\Common\Annotations\AnnotationRegistry;
AnnotationRegistry::registerAutoloadNamespace('Ray\Di\Di\\', 'path/to/vendor/Ray/Di/src/');
|
Inject Annotation is fixed in koriym@4eeddc8#src/Ray I opened #11 for Binding |
biding fix with 0a3e26b |
@akkie thanks for the suggestion. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
here is a list of some suggested improvements for the lib.
Cache:
Only APC is supported(Why not using Doctrine\Common\Cache)
I've observed a strange caching behaviour. It seems that the lib caches sometimes an inconsistent state. This is reproducible with the following steps:
If I clear the cache and reload the page then it works as expected.
Inject Annotation
The Inject annotation cannot be loaded with an own autoloader implementation. It seems that the doctrine annotation implementation relies on the doctrine autoloader. As a workaround I must include the annotation by hand.
This is the error:
If the Inject annotation is missing, the lib throws a NotBinded exception. I think in this case it should throw an exception that the annotation is missing.
This is the error:
The FQN
@Ray\Di\Di\Inject
does not work. Only the short formInject
does work as definition. I rather thought that doctrine supports the fully FQN syntax.Binding
This is the error:
The text was updated successfully, but these errors were encountered: