welcome back to dyb-tech

This commit is contained in:
Daniel Guzman
2024-05-18 02:28:01 +02:00
parent 9513cdba09
commit 9f30bc98c7
6149 changed files with 668407 additions and 0 deletions
@@ -0,0 +1,19 @@
<?php
namespace Doctrine\Bundle\DoctrineBundle\Attribute;
use Attribute;
/**
* Service tag to autoconfigure event listeners.
*/
#[Attribute(Attribute::TARGET_CLASS | Attribute::IS_REPEATABLE)]
class AsDoctrineListener
{
public function __construct(
public string $event,
public ?int $priority = null,
public ?string $connection = null,
) {
}
}
@@ -0,0 +1,22 @@
<?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,
public ?string $entity = null,
public ?int $priority = null,
) {
}
}
@@ -0,0 +1,16 @@
<?php
namespace Doctrine\Bundle\DoctrineBundle\Attribute;
use Attribute;
#[Attribute(Attribute::TARGET_CLASS)]
class AsMiddleware
{
/** @param string[] $connections */
public function __construct(
public array $connections = [],
public ?int $priority = null,
) {
}
}