Skip to content
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

Relax contract of EntityListenerResolver so it doesn't require class name #8448

Merged
merged 2 commits into from
Jan 30, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 4 additions & 8 deletions lib/Doctrine/ORM/Mapping/EntityListenerResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,20 @@
interface EntityListenerResolver
{
/**
* Clear all instances from the set, or a specific class when given.
* Clear all instances from the set, or a specific instance when given its identifier.
*
* @param string $className The fully-qualified class name
* @param string $className May be any arbitrary string. Name kept for BC only.
*
* @return void
*
* @psalm-param class-string $className
*/
function clear($className = null);

/**
* Returns a entity listener instance for the given class name.
* Returns a entity listener instance for the given identifier.
*
* @param string $className The fully-qualified class name
* @param string $className May be any arbitrary string. Name kept for BC only.
*
* @return object An entity listener
*
* @psalm-param class-string $className
*/
function resolve($className);

Expand Down