-
-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
da514a2
commit 52e6795
Showing
4 changed files
with
88 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?php | ||
|
||
namespace Doctrine\Bundle\DoctrineBundle\Attribute; | ||
|
||
use Attribute; | ||
|
||
/** | ||
* Service tag to autoconfigure entity listeners. | ||
*/ | ||
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)] | ||
class AsEntityListener | ||
{ | ||
public function __construct( | ||
public ?string $event = null, | ||
public ?string $method = null, | ||
public ?bool $lazy = null, | ||
public ?string $entityManager = null, | ||
) { | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
<?php | ||
|
||
namespace Doctrine\Bundle\DoctrineBundle\Tests\DependencyInjection\Fixtures; | ||
|
||
use Doctrine\Bundle\DoctrineBundle\Attribute\AsEntityListener; | ||
|
||
#[AsEntityListener()] | ||
final class Php8EntityListener | ||
{ | ||
public function __invoke(): void | ||
{ | ||
} | ||
|
||
public function postPersist(): void | ||
{ | ||
} | ||
} |