-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Contracts][EventDispatcher] add EventDispatcherInterface to symfony/contracts and use it where possible #30691
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -226,16 +226,7 @@ private function autowireMethod(\ReflectionFunctionAbstract $reflectionMethod, a | |
if ($parameter->isDefaultValueAvailable()) { | ||
$value = $parameter->getDefaultValue(); | ||
} elseif (!$parameter->allowsNull()) { | ||
if (\function_exists('xdebug_disable')) { | ||
xdebug_disable(); | ||
} | ||
try { | ||
throw new AutowiringFailedException($this->currentId, $failureMessage); | ||
} finally { | ||
if (\function_exists('xdebug_enable')) { | ||
xdebug_enable(); | ||
} | ||
} | ||
throw new AutowiringFailedException($this->currentId, $failureMessage); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not directly related but was still needed to make tests pass locally |
||
} | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ | |
], | ||
"require": { | ||
"php": "^7.1.3", | ||
"symfony/contracts": "^1.0" | ||
"symfony/contracts": "^1.1" | ||
}, | ||
"require-dev": { | ||
"symfony/dependency-injection": "~3.4|~4.0", | ||
|
@@ -29,6 +29,10 @@ | |
"conflict": { | ||
"symfony/dependency-injection": "<3.4" | ||
}, | ||
"provide": { | ||
"psr/event-dispatcher-implementation": "1.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can we do that (because this is only true when the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It still does provide the implementation - when the package is present of course. When it isn't, nothing can provide it by definition. So yes we can. |
||
"symfony/event-dispatcher-implementation": "1.1" | ||
}, | ||
"suggest": { | ||
"symfony/dependency-injection": "", | ||
"symfony/http-kernel": "" | ||
|
Uh oh!
There was an error while loading. Please reload this page.