Skip to content

Commit

Permalink
Relax contract of EntityListenerResolver so it doesn't require class …
Browse files Browse the repository at this point in the history
…name (#8448)

Co-authored-by: Grégoire Paris <[email protected]>
  • Loading branch information
ostrolucky and greg0ire authored Jan 30, 2021
1 parent 40aa8fe commit 1a46ed8
Showing 1 changed file with 4 additions and 8 deletions.
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

0 comments on commit 1a46ed8

Please sign in to comment.