-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Add symfony/contracts: a set of abstractions extracted out of the Symfony components #27093
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 |
---|---|---|
|
@@ -12,13 +12,14 @@ | |
namespace Symfony\Component\EventDispatcher\Debug; | ||
|
||
use Symfony\Component\EventDispatcher\EventDispatcherInterface; | ||
use Symfony\Contract\Service\ResetInterface; | ||
|
||
/** | ||
* @deprecated since Symfony 4.1 | ||
* | ||
* @author Fabien Potencier <fabien@symfony.com> | ||
*/ | ||
interface TraceableEventDispatcherInterface extends EventDispatcherInterface | ||
interface TraceableEventDispatcherInterface extends EventDispatcherInterface, ResetInterface | ||
{ | ||
/** | ||
* Gets the called listeners. | ||
|
@@ -33,9 +34,4 @@ public function getCalledListeners(); | |
* @return array An array of not called listeners | ||
*/ | ||
public function getNotCalledListeners(); | ||
|
||
/** | ||
* Resets the trace. | ||
*/ | ||
public function reset(); | ||
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. I suppose we should change 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. That being said, is this
This comment was marked as resolved.
Sorry, something went wrong. 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.
Just imagine one would notice interface HasLength
{
public function length(): int;
} ? I don't think so. Yes, technically, they have the same signature, but they are different. |
||
} |
Uh oh!
There was an error while loading. Please reload this page.