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
Exception: Target ManagerRegistry is not instantiable #85
Comments
The stack trace should show what is trying to instantiate that class - please report this error to that library instead. I'm not very familiar with Laravel and how they use the persistence library, but you may want to create an issue at https://github.com/laravel/framework/issues and cross-reference this issue here. In particular, the |
Yeah, but the problem is because 1.2.0 version works, but 1.3.3 version does not. I saw that the ManagerRegistry is deprecated, but which one should I use than in the newer version? |
The problem is that a library that uses the persistence interfaces apparently doesn't handle the new class accordingly. That's nothing to be fixed here, it needs to be fixed downstream. |
@alcaeus Have you already researched the problem? |
@xtrasmal there's nothing we can really investigate on our end. |
@xtrasmal we've had a similar issue with a different framework, see neos/flow-development-collection#1891 for that fix. There's nothing else we can do. |
@alcaeus @malarzm Thanks for your replies. I quickly looked into it and the problem is actually quite understandable. Frameworks that have some kind of Doctrine adapter or bridge have interfaces that alias ManagerRegistry into the service container(DIC or IOC) of the framework. |
Hi, in which way you changed bootstrapig of ManagerRegistry ? |
Hi there!
I'm getting a weird error when I updated the package to version "1.3.3". Working with Laravel 6 version and Doctrine, tried to do the
composer update
and getting the following error:Illuminate\Contracts\Container\BindingResolutionException : Target [Doctrine\Persistence\ManagerRegistry] is not instantiable while building [App\Console\Commands\SomeCommand, App\Support\EntityManager].
In my
construct()
method I inject theDoctrine\Common\Persistence\ManagerRegistry
class. When I downgrade to version "1.2.0" everything works fine. Any help with this? Thank you!The text was updated successfully, but these errors were encountered: