agregar pabellon a tabla de equipos, mejorar respuesta de registro de usuario, normalizar mensajes de error

This commit is contained in:
Daniel Guzman 2024-05-23 00:22:06 +02:00
parent 557b586b76
commit 82282ebbca
387 changed files with 889 additions and 606 deletions

View File

@ -0,0 +1,31 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240522213147 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE facility ADD active TINYINT(1) DEFAULT NULL, ADD available_hours JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE facility DROP active, DROP available_hours');
}
}

View File

@ -0,0 +1,37 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Auto-generated Migration: Please modify to your needs!
*/
final class Version20240522221403 extends AbstractMigration
{
public function getDescription(): string
{
return '';
}
public function up(Schema $schema): void
{
// this up() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE facility CHANGE available_hours available_hours JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE team ADD home_facility_id INT DEFAULT NULL');
$this->addSql('ALTER TABLE team ADD CONSTRAINT FK_HOME_FACILITY_ID FOREIGN KEY (home_facility_id) REFERENCES facility (id)');
$this->addSql('CREATE INDEX IDX_HOME_FACILITY ON team (home_facility_id)');
}
public function down(Schema $schema): void
{
// this down() migration is auto-generated, please modify it to your needs
$this->addSql('ALTER TABLE facility CHANGE available_hours available_hours JSON DEFAULT NULL COMMENT \'(DC2Type:json)\'');
$this->addSql('ALTER TABLE team DROP FOREIGN KEY FK_C4E0A61F1ACD745D');
$this->addSql('DROP INDEX IDX_C4E0A61F1ACD745D ON team');
$this->addSql('ALTER TABLE team DROP home_facility_id');
}
}

View File

@ -3,6 +3,7 @@
namespace DMD\LaLigaApi\Dto;
use DMD\LaLigaApi\Entity\Facility;
use DMD\LaLigaApi\Exception\ValidationException;
use phpDocumentor\Reflection\Types\Integer;
class FacilityDto
@ -10,10 +11,12 @@ class FacilityDto
public int $id;
public string $name;
public string $address;
public array $availableHourList;
public bool $active;
public array $gameDtoList;
public array $seasonDtoList;
public \DateTime $createdAt;
public \DateTimeImmutable $createdAt;
public array $validationErrors;
public function toArray(): array
{
@ -29,7 +32,7 @@ class FacilityDto
'id' => $this->id ?? '',
'name' => $this->name ?? '',
'address' => $this->address ?? '',
'seasonList' => $seasonList,
'availableHours' => $this->availableHourList ?? [],
'createdAt' => !empty($this->createdAt) ? $this->createdAt->format('Y-m-d H:i:s') : ''
];
}
@ -52,6 +55,10 @@ class FacilityDto
{
$this->active = $dataList['active'];
}
if (isset($dataList['availableHours']))
{
$this->availableHourList = $dataList['availableHours'];
}
if (!empty($dataList['seasonList']))
{
foreach ($dataList['seasonList'] as $seasonItem)
@ -63,7 +70,7 @@ class FacilityDto
}
if (!empty($dataList['createdAt']))
{
$this->createdAt = \DateTime::createFromFormat('Y-m-d H:i:s', $dataList['createdAt'], new \DateTimeZone('Europe/Madrid'));
$this->createdAt = \DateTimeImmutable::createFromFormat('Y-m-d H:i:s', $dataList['createdAt'], new \DateTimeZone('Europe/Madrid'));
}
}
@ -81,17 +88,33 @@ class FacilityDto
{
$this->address = $facilityEntity->getAddress();
}
if ($facilityEntity->getAvailableHours() !== null)
{
$this->availableHourList = $facilityEntity->getAvailableHours();
}
if ($facilityEntity->getCreatedAt() !== null)
{
$this->createdAt = new \DateTime($facilityEntity->getCreatedAt(), new \DateTimeZone('Europe/Madrid'));
$this->createdAt =$facilityEntity->getCreatedAt();
}
}
public function validate(): void
{
// if (empty($this->name))
// {
// $this->validationErrors[] = 'El nombre del equipo no puede estar vacío.';
// }
if (empty($this->name))
{
$this->validationErrors[] = 'El nombre del pabellón no puede estar vacío.';
}
if (empty($this->address))
{
$this->validationErrors[] = 'La dirección del pabellón no puede estar vacío.';
}
if (empty($this->availableHourList))
{
$this->validationErrors[] = 'Las horas disponibles del pabellón no pueden estar vacías.';
}
if (!empty($this->validationErrors))
{
throw new ValidationException($this->validationErrors);
}
}
}

View File

@ -42,6 +42,19 @@ class UserDto
];
}
public function toRegisterArray(): array
{
return [
'id' => $this->id ?? null,
'email' => $this->email ?? null,
'firstName' => $this->firstName ?? null,
'lastName' => $this->lastName ?? null,
'phone' => $this->phone,
'profilePicture' => $this->profilePicture ?? null,
'birthday' => $this->birthday->format('Y-m-d'),
];
}
public function fillFromObject(User $userObj): void
{
if ($userObj->getId() !== null)

View File

@ -31,9 +31,19 @@ class Facility
#[ORM\Column(nullable: true)]
private ?\DateTimeImmutable $createdAt = null;
#[ORM\Column(nullable: true)]
private ?bool $active = null;
#[ORM\Column(nullable: true)]
private ?array $availableHours = null;
#[ORM\OneToMany(mappedBy: 'homeFacility', targetEntity: Team::class)]
private Collection $teams;
public function __construct()
{
$this->games = new ArrayCollection();
$this->teams = new ArrayCollection();
}
public function getId(): ?int
@ -119,4 +129,58 @@ class Facility
$this->createdAt = new \DateTimeImmutable('now', $timezone);
}
public function isActive(): ?bool
{
return $this->active;
}
public function setActive(?bool $active): static
{
$this->active = $active;
return $this;
}
public function getAvailableHours(): ?array
{
return $this->availableHours;
}
public function setAvailableHours(?array $availableHours): static
{
$this->availableHours = $availableHours;
return $this;
}
/**
* @return Collection<int, Team>
*/
public function getTeams(): Collection
{
return $this->teams;
}
public function addTeam(Team $team): static
{
if (!$this->teams->contains($team)) {
$this->teams->add($team);
$team->setHomeFacility($this);
}
return $this;
}
public function removeTeam(Team $team): static
{
if ($this->teams->removeElement($team)) {
// set the owning side to null (unless already changed)
if ($team->getHomeFacility() === $this) {
$team->setHomeFacility(null);
}
}
return $this;
}
}

View File

@ -37,6 +37,9 @@ class Team
#[ORM\OneToOne(inversedBy: 'team', cascade: ['persist', 'remove'])]
private ?User $captain = null;
#[ORM\ManyToOne(inversedBy: 'teams')]
private ?Facility $homeFacility = null;
public function __construct()
{
$this->seasons = new ArrayCollection();
@ -184,4 +187,16 @@ class Team
return $this;
}
public function getHomeFacility(): ?Facility
{
return $this->homeFacility;
}
public function setHomeFacility(?Facility $homeFacility): static
{
$this->homeFacility = $homeFacility;
return $this;
}
}

View File

@ -24,7 +24,8 @@ class ExceptionListener
$log->setCode($exception->getStatusCode());
$log->setMessage($exception->getMessage());
$response = new JsonResponse([
'error'=> [
'success' => false,
'error' => [
'code' => $exception->getStatusCode(),
'message' => $exception->getMessage()
]
@ -37,7 +38,11 @@ class ExceptionListener
$response = new JsonResponse(
data: [
'success' => false,
'error' => [
'code' => $exception->getCode(),
'message' => 'Validation errors',
'validationErrors' => $exception->getValidationErrors()
]
],
status: $exception->getCode()
);

View File

@ -0,0 +1,30 @@
<?php
namespace DMD\LaLigaApi\Service\League;
use DMD\LaLigaApi\Dto\FacilityDto;
use DMD\LaLigaApi\Dto\LeagueDto;
use DMD\LaLigaApi\Entity\Facility;
use DMD\LaLigaApi\Entity\League;
class FacilityFactory
{
public static function create(FacilityDto $facilityDto): Facility
{
$facilityEntity = new Facility();
if (!empty($facilityDto->name))
{
$facilityEntity->setName($facilityDto->name);
}
if (!empty($facilityDto->address))
{
$facilityEntity->setName($facilityDto->address);
}
if (!empty($facilityDto->address))
{
$facilityEntity->setName($facilityDto->address);
}
$facilityEntity->setActive(true);
return $facilityEntity;
}
}

View File

@ -0,0 +1,59 @@
<?php
namespace DMD\LaLigaApi\Service\League\createFacilities;
use DMD\LaLigaApi\Dto\FacilityDto;
use DMD\LaLigaApi\Dto\LeagueDto;
use DMD\LaLigaApi\Entity\CustomRole;
use DMD\LaLigaApi\Entity\League;
use DMD\LaLigaApi\Entity\User;
use DMD\LaLigaApi\Enum\Role;
use DMD\LaLigaApi\Exception\ValidationException;
use DMD\LaLigaApi\Repository\UserRepository;
use DMD\LaLigaApi\Service\League\FacilityFactory;
use DMD\LaLigaApi\Service\League\LeagueFactory;
use Doctrine\ORM\EntityManagerInterface;
use Symfony\Bundle\SecurityBundle\Security;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
class HandleCreateFacilities
{
public function __construct(
public FacilityFactory $facilityFactory,
public EntityManagerInterface $entityManager,
public Security $security,
public UserRepository $userRepository
){}
/**
* @throws ValidationException
*/
public function __invoke(Request $request): JsonResponse
{
$userEntity = $this->userRepository->findOneBy([
'email' => $this->security->getUser()?->getUserIdentifier()
]);
if (is_null($userEntity)) {
throw new HttpException(Response::HTTP_FORBIDDEN, "Unauthorized.");
}
$facilityDto = new FacilityDto();
$facilityDto->fillFromArray($request->toArray());
$facilityDto->validate();
$facilityEntity = $this->facilityFactory::create($facilityDto);
$this->entityManager->persist($facilityEntity);
$this->entityManager->flush();
$facilityDto->id = $facilityEntity->getId();
$facilityDto->createdAt = $facilityEntity->getCreatedAt();
return new JsonResponse(
data: [
'success' => true,
'league' => $facilityDto->toArray()
],
status: Response::HTTP_OK
);
}
}

View File

@ -55,7 +55,7 @@ class HandleRegistration
'success' => true,
'message' => 'Usuario creado.',
'token' => $token,
'user' => $userDto->toArray(),
'user' => $userDto->toRegisterArray(),
],
status: Response::HTTP_OK
);

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'doctrine'.\DIRECTORY_SEPARATOR.'persistence'.\DIRECTORY_SEPARATOR.'src'.\DIRECTORY_SEPARATOR.'Persistence'.\DIRECTORY_SEPARATOR.'ObjectManager.php';
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'doctrine'.\DIRECTORY_SEPARATOR.'orm'.\DIRECTORY_SEPARATOR.'src'.\DIRECTORY_SEPARATOR.'EntityManagerInterface.php';
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'doctrine'.\DIRECTORY_SEPARATOR.'orm'.\DIRECTORY_SEPARATOR.'src'.\DIRECTORY_SEPARATOR.'EntityManager.php';

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'symfony'.\DIRECTORY_SEPARATOR.'http-kernel'.\DIRECTORY_SEPARATOR.'Controller'.\DIRECTORY_SEPARATOR.'ValueResolverInterface.php';
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'symfony'.\DIRECTORY_SEPARATOR.'http-kernel'.\DIRECTORY_SEPARATOR.'Controller'.\DIRECTORY_SEPARATOR.'ArgumentResolver'.\DIRECTORY_SEPARATOR.'RequestPayloadValueResolver.php';

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
@ -35,7 +35,7 @@ class getCache_AppService extends DMD_LaLigaApi_KernelDevDebugContainer
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'symfony'.\DIRECTORY_SEPARATOR.'cache'.\DIRECTORY_SEPARATOR.'Marshaller'.\DIRECTORY_SEPARATOR.'MarshallerInterface.php';
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'symfony'.\DIRECTORY_SEPARATOR.'cache'.\DIRECTORY_SEPARATOR.'Marshaller'.\DIRECTORY_SEPARATOR.'DefaultMarshaller.php';
$container->services['cache.app'] = $instance = new \Symfony\Component\Cache\Adapter\FilesystemAdapter('5cNu+aH6-E', 0, ($container->targetDir.''.'/pools/app'), new \Symfony\Component\Cache\Marshaller\DefaultMarshaller(NULL, true));
$container->services['cache.app'] = $instance = new \Symfony\Component\Cache\Adapter\FilesystemAdapter('NaLhWLN+Xk', 0, ($container->targetDir.''.'/pools/app'), new \Symfony\Component\Cache\Marshaller\DefaultMarshaller(NULL, true));
$instance->setLogger(($container->privates['logger'] ?? self::getLoggerService($container)));

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
@ -29,6 +29,6 @@ class getCache_SecurityIsGrantedAttributeExpressionLanguageService extends DMD_L
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'symfony'.\DIRECTORY_SEPARATOR.'cache'.\DIRECTORY_SEPARATOR.'Traits'.\DIRECTORY_SEPARATOR.'ContractsTrait.php';
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'symfony'.\DIRECTORY_SEPARATOR.'cache'.\DIRECTORY_SEPARATOR.'Adapter'.\DIRECTORY_SEPARATOR.'AbstractAdapter.php';
return $container->services['cache.security_is_granted_attribute_expression_language'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('Ar83S6CbdU', 0, $container->getParameter('container.build_id'), ($container->targetDir.''.'/pools/system'), ($container->privates['logger'] ?? self::getLoggerService($container)));
return $container->services['cache.security_is_granted_attribute_expression_language'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('7-WF8WwGVY', 0, $container->getParameter('container.build_id'), ($container->targetDir.''.'/pools/system'), ($container->privates['logger'] ?? self::getLoggerService($container)));
}
}

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
@ -29,6 +29,6 @@ class getCache_SystemService extends DMD_LaLigaApi_KernelDevDebugContainer
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'symfony'.\DIRECTORY_SEPARATOR.'cache'.\DIRECTORY_SEPARATOR.'Traits'.\DIRECTORY_SEPARATOR.'ContractsTrait.php';
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'symfony'.\DIRECTORY_SEPARATOR.'cache'.\DIRECTORY_SEPARATOR.'Adapter'.\DIRECTORY_SEPARATOR.'AbstractAdapter.php';
return $container->services['cache.system'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('1chR708yRo', 0, $container->getParameter('container.build_id'), ($container->targetDir.''.'/pools/system'), ($container->privates['logger'] ?? self::getLoggerService($container)));
return $container->services['cache.system'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('+4VOWgVa18', 0, $container->getParameter('container.build_id'), ($container->targetDir.''.'/pools/system'), ($container->privates['logger'] ?? self::getLoggerService($container)));
}
}

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
@ -29,6 +29,6 @@ class getCache_ValidatorExpressionLanguageService extends DMD_LaLigaApi_KernelDe
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'symfony'.\DIRECTORY_SEPARATOR.'cache'.\DIRECTORY_SEPARATOR.'Traits'.\DIRECTORY_SEPARATOR.'ContractsTrait.php';
include_once \dirname(__DIR__, 4).''.\DIRECTORY_SEPARATOR.'vendor'.\DIRECTORY_SEPARATOR.'symfony'.\DIRECTORY_SEPARATOR.'cache'.\DIRECTORY_SEPARATOR.'Adapter'.\DIRECTORY_SEPARATOR.'AbstractAdapter.php';
return $container->services['cache.validator_expression_language'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('kKPwXLHhMb', 0, $container->getParameter('container.build_id'), ($container->targetDir.''.'/pools/system'), ($container->privates['logger'] ?? self::getLoggerService($container)));
return $container->services['cache.validator_expression_language'] = \Symfony\Component\Cache\Adapter\AbstractAdapter::createSystemCache('njivdr+jA5', 0, $container->getParameter('container.build_id'), ($container->targetDir.''.'/pools/system'), ($container->privates['logger'] ?? self::getLoggerService($container)));
}
}

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;
@ -38,6 +38,6 @@ class getDoctrine_Dbal_DefaultConnectionService extends DMD_LaLigaApi_KernelDevD
$a->setSchemaManagerFactory(new \Doctrine\DBAL\Schema\LegacySchemaManagerFactory());
$a->setMiddlewares([$b]);
return $container->services['doctrine.dbal.default_connection'] = (new \Doctrine\Bundle\DoctrineBundle\ConnectionFactory([], new \Doctrine\DBAL\Tools\DsnParser(['db2' => 'ibm_db2', 'mssql' => 'pdo_sqlsrv', 'mysql' => 'pdo_mysql', 'mysql2' => 'pdo_mysql', 'postgres' => 'pdo_pgsql', 'postgresql' => 'pdo_pgsql', 'pgsql' => 'pdo_pgsql', 'sqlite' => 'pdo_sqlite', 'sqlite3' => 'pdo_sqlite'])))->createConnection(['url' => 'mysql://root:root@localhost:3307/la_liga?serverVersion=8.0.32&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'localhost', 'port' => NULL, 'user' => 'root', 'password' => NULL, 'driverOptions' => [], 'defaultTableOptions' => []], $a, ($container->privates['doctrine.dbal.default_connection.event_manager'] ?? $container->load('getDoctrine_Dbal_DefaultConnection_EventManagerService')), []);
return $container->services['doctrine.dbal.default_connection'] = (new \Doctrine\Bundle\DoctrineBundle\ConnectionFactory([], new \Doctrine\DBAL\Tools\DsnParser(['db2' => 'ibm_db2', 'mssql' => 'pdo_sqlsrv', 'mysql' => 'pdo_mysql', 'mysql2' => 'pdo_mysql', 'postgres' => 'pdo_pgsql', 'postgresql' => 'pdo_pgsql', 'pgsql' => 'pdo_pgsql', 'sqlite' => 'pdo_sqlite', 'sqlite3' => 'pdo_sqlite'])))->createConnection(['url' => 'mysql://mamb:lakers06@casa.dyb-tech.com:3306/laliga?serverVersion=10.5.22-MariaDB&charset=utf8mb4', 'driver' => 'pdo_mysql', 'host' => 'localhost', 'port' => NULL, 'user' => 'root', 'password' => NULL, 'driverOptions' => [], 'defaultTableOptions' => []], $a, ($container->privates['doctrine.dbal.default_connection.event_manager'] ?? $container->load('getDoctrine_Dbal_DefaultConnection_EventManagerService')), []);
}
}

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

View File

@ -1,6 +1,6 @@
<?php
namespace ContainerFp3yQxU;
namespace ContainerXJAXgNH;
use Symfony\Component\DependencyInjection\Argument\RewindableGenerator;
use Symfony\Component\DependencyInjection\ContainerInterface;

Some files were not shown because too many files have changed in this diff Show More