-
Notifications
You must be signed in to change notification settings - Fork 64
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
Cannot instantiate abstract class Doctrine\Common\EventManager #105
Comments
It's autoloaded only if the doctrine/common package is not installed. See https://github.com/Kdyby/Events/blob/master/src/Doctrine/compatibility.php. |
When Composer's global autoloading is added to For now I moved it to |
In order to use
composer.json
composer info
Sigh... |
Sorry, but I have no idea what is this good for, but this doesn't sound right to me
Possible solution might be for you the #97. |
Ahahahaha. "doesn't sound right to me", ok, this is the final argument. I'm going to tell Composer's developers that whole "global" thing is "not right". Let's download every vendor everytime instead of using e.g. You made my day 😂 |
Yeah, global dependencies are wrong :) I'm happy you agree! |
You can of couse. Global installation is meant solely for projects that are used directly from CLI, not for libraries with dependants etc.
This is definitely totally wrong.
Correct, that's intended way of how dependencies are supposed to work. Don't forget there are multiple versions etc. |
I will not go further with this discussion because it does not make sense. I think global LIBRARIES (not dependencies! I'm using |
I've installed
apigen/apigen
globally and configured PHP to include globalautoload.php
usingauto_prepend_file
. It worked, until now. I've updated ApiGen (dev-master ddf5b27 => v4.1.2) and now I get in my Silex application:I open
DoctrineServiceProvider
, go toDoctrine\Common\EventManager
and WTF? It's not abstract. Then I edit service provider and just beforeEventManager
initialization I use:Effect?
<path>\Composer\vendor\kdyby\events\src\Doctrine\aliases.php:15
Why do you declare something which is incompatible with commonly used Doctrine class?
The text was updated successfully, but these errors were encountered: