Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1a46ed8

Browse files
ostroluckygreg0ire
andauthored
Relax contract of EntityListenerResolver so it doesn't require class name (#8448)
Co-authored-by: Grégoire Paris <[email protected]>
1 parent 40aa8fe commit 1a46ed8

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

lib/Doctrine/ORM/Mapping/EntityListenerResolver.php

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,24 +29,20 @@
2929
interface EntityListenerResolver
3030
{
3131
/**
32-
* Clear all instances from the set, or a specific class when given.
32+
* Clear all instances from the set, or a specific instance when given its identifier.
3333
*
34-
* @param string $className The fully-qualified class name
34+
* @param string $className May be any arbitrary string. Name kept for BC only.
3535
*
3636
* @return void
37-
*
38-
* @psalm-param class-string $className
3937
*/
4038
function clear($className = null);
4139

4240
/**
43-
* Returns a entity listener instance for the given class name.
41+
* Returns a entity listener instance for the given identifier.
4442
*
45-
* @param string $className The fully-qualified class name
43+
* @param string $className May be any arbitrary string. Name kept for BC only.
4644
*
4745
* @return object An entity listener
48-
*
49-
* @psalm-param class-string $className
5046
*/
5147
function resolve($className);
5248

0 commit comments

Comments
 (0)