mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-07-05 15:10:16 +02:00
Run updated tools
This commit is contained in:
Generated
+3
-3
@@ -727,7 +727,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* servicename?: scalar|Param|null, // Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
|
* servicename?: scalar|Param|null, // Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
|
||||||
* sessionMode?: scalar|Param|null, // The session mode to use for the oci8 driver
|
* sessionMode?: scalar|Param|null, // The session mode to use for the oci8 driver
|
||||||
* server?: scalar|Param|null, // The name of a running database server to connect to for SQL Anywhere.
|
* server?: scalar|Param|null, // The name of a running database server to connect to for SQL Anywhere.
|
||||||
* default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connexion.
|
* default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connection.
|
||||||
* sslmode?: scalar|Param|null, // Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
|
* sslmode?: scalar|Param|null, // Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
|
||||||
* sslrootcert?: scalar|Param|null, // The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
|
* sslrootcert?: scalar|Param|null, // The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
|
||||||
* sslcert?: scalar|Param|null, // The path to the SSL client certificate file for PostgreSQL.
|
* sslcert?: scalar|Param|null, // The path to the SSL client certificate file for PostgreSQL.
|
||||||
@@ -773,7 +773,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* servicename?: scalar|Param|null, // Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
|
* servicename?: scalar|Param|null, // Overrules dbname parameter if given and used as SERVICE_NAME or SID connection parameter for Oracle depending on the service parameter.
|
||||||
* sessionMode?: scalar|Param|null, // The session mode to use for the oci8 driver
|
* sessionMode?: scalar|Param|null, // The session mode to use for the oci8 driver
|
||||||
* server?: scalar|Param|null, // The name of a running database server to connect to for SQL Anywhere.
|
* server?: scalar|Param|null, // The name of a running database server to connect to for SQL Anywhere.
|
||||||
* default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connexion.
|
* default_dbname?: scalar|Param|null, // Override the default database (postgres) to connect to for PostgreSQL connection.
|
||||||
* sslmode?: scalar|Param|null, // Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
|
* sslmode?: scalar|Param|null, // Determines whether or with what priority a SSL TCP/IP connection will be negotiated with the server for PostgreSQL.
|
||||||
* sslrootcert?: scalar|Param|null, // The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
|
* sslrootcert?: scalar|Param|null, // The name of a file containing SSL certificate authority (CA) certificate(s). If the file exists, the server's certificate will be verified to be signed by one of these authorities.
|
||||||
* sslcert?: scalar|Param|null, // The path to the SSL client certificate file for PostgreSQL.
|
* sslcert?: scalar|Param|null, // The path to the SSL client certificate file for PostgreSQL.
|
||||||
@@ -852,7 +852,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* lock_path?: scalar|Param|null, // Default: "%kernel.cache_dir%/doctrine/orm/slc/filelock"
|
* lock_path?: scalar|Param|null, // Default: "%kernel.cache_dir%/doctrine/orm/slc/filelock"
|
||||||
* lock_lifetime?: scalar|Param|null, // Default: 60
|
* lock_lifetime?: scalar|Param|null, // Default: 60
|
||||||
* type?: scalar|Param|null, // Default: "default"
|
* type?: scalar|Param|null, // Default: "default"
|
||||||
* lifetime?: scalar|Param|null, // Default: 0
|
* lifetime?: scalar|Param|null, // Default: null
|
||||||
* service?: scalar|Param|null,
|
* service?: scalar|Param|null,
|
||||||
* name?: scalar|Param|null,
|
* name?: scalar|Param|null,
|
||||||
* }>,
|
* }>,
|
||||||
|
|||||||
@@ -12,7 +12,9 @@ use Symfony\Component\Console\Style\SymfonyStyle;
|
|||||||
use Tvdt\Entity\Season;
|
use Tvdt\Entity\Season;
|
||||||
use Tvdt\Repository\SeasonRepository;
|
use Tvdt\Repository\SeasonRepository;
|
||||||
use Tvdt\Repository\UserRepository;
|
use Tvdt\Repository\UserRepository;
|
||||||
|
use Tvdt\Tests\Command\ClaimSeasonCommandTest;
|
||||||
|
|
||||||
|
/** @see ClaimSeasonCommandTest */
|
||||||
#[AsCommand(
|
#[AsCommand(
|
||||||
name: 'tvdt:claim-season',
|
name: 'tvdt:claim-season',
|
||||||
description: 'Give a user owner rights on a season',
|
description: 'Give a user owner rights on a season',
|
||||||
|
|||||||
@@ -9,7 +9,9 @@ use Symfony\Component\Console\Attribute\AsCommand;
|
|||||||
use Symfony\Component\Console\Command\Command;
|
use Symfony\Component\Console\Command\Command;
|
||||||
use Symfony\Component\Console\Style\SymfonyStyle;
|
use Symfony\Component\Console\Style\SymfonyStyle;
|
||||||
use Tvdt\Repository\UserRepository;
|
use Tvdt\Repository\UserRepository;
|
||||||
|
use Tvdt\Tests\Command\MakeAdminCommandTest;
|
||||||
|
|
||||||
|
/** @see MakeAdminCommandTest */
|
||||||
#[AsCommand(
|
#[AsCommand(
|
||||||
name: 'tvdt:make-admin',
|
name: 'tvdt:make-admin',
|
||||||
description: 'Give a user the role admin',
|
description: 'Give a user the role admin',
|
||||||
|
|||||||
@@ -31,14 +31,14 @@ class GivenAnswer
|
|||||||
public function __construct(
|
public function __construct(
|
||||||
#[ORM\JoinColumn(nullable: false)]
|
#[ORM\JoinColumn(nullable: false)]
|
||||||
#[ORM\ManyToOne(inversedBy: 'givenAnswers')]
|
#[ORM\ManyToOne(inversedBy: 'givenAnswers')]
|
||||||
private(set) Candidate $candidate,
|
public private(set) Candidate $candidate,
|
||||||
|
|
||||||
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
|
#[ORM\JoinColumn(nullable: false, onDelete: 'CASCADE')]
|
||||||
#[ORM\ManyToOne]
|
#[ORM\ManyToOne]
|
||||||
private(set) Quiz $quiz,
|
public private(set) Quiz $quiz,
|
||||||
|
|
||||||
#[ORM\JoinColumn(nullable: false)]
|
#[ORM\JoinColumn(nullable: false)]
|
||||||
#[ORM\ManyToOne(inversedBy: 'givenAnswers')]
|
#[ORM\ManyToOne(inversedBy: 'givenAnswers')]
|
||||||
private(set) Answer $answer,
|
public private(set) Answer $answer,
|
||||||
) {}
|
) {}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,7 +5,9 @@ declare(strict_types=1);
|
|||||||
namespace Tvdt\Helpers;
|
namespace Tvdt\Helpers;
|
||||||
|
|
||||||
use Safe\Exceptions\UrlException;
|
use Safe\Exceptions\UrlException;
|
||||||
|
use Tvdt\Tests\Helpers\Base64Test;
|
||||||
|
|
||||||
|
/** @see Base64Test */
|
||||||
class Base64
|
class Base64
|
||||||
{
|
{
|
||||||
public static function base64UrlEncode(string $input): string
|
public static function base64UrlEncode(string $input): string
|
||||||
|
|||||||
@@ -10,8 +10,10 @@ use Safe\Exceptions\UrlException;
|
|||||||
use Tvdt\Entity\Candidate;
|
use Tvdt\Entity\Candidate;
|
||||||
use Tvdt\Entity\Season;
|
use Tvdt\Entity\Season;
|
||||||
use Tvdt\Helpers\Base64;
|
use Tvdt\Helpers\Base64;
|
||||||
|
use Tvdt\Tests\Repository\CandidateRepositoryTest;
|
||||||
|
|
||||||
/** @extends ServiceEntityRepository<Candidate> */
|
/** @extends ServiceEntityRepository<Candidate>
|
||||||
|
* @see CandidateRepositoryTest */
|
||||||
class CandidateRepository extends ServiceEntityRepository
|
class CandidateRepository extends ServiceEntityRepository
|
||||||
{
|
{
|
||||||
public function __construct(ManagerRegistry $registry)
|
public function __construct(ManagerRegistry $registry)
|
||||||
|
|||||||
@@ -8,8 +8,10 @@ use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|||||||
use Doctrine\Persistence\ManagerRegistry;
|
use Doctrine\Persistence\ManagerRegistry;
|
||||||
use Tvdt\Entity\Candidate;
|
use Tvdt\Entity\Candidate;
|
||||||
use Tvdt\Entity\Question;
|
use Tvdt\Entity\Question;
|
||||||
|
use Tvdt\Tests\Repository\QuestionRepositoryTest;
|
||||||
|
|
||||||
/** @extends ServiceEntityRepository<Question> */
|
/** @extends ServiceEntityRepository<Question>
|
||||||
|
* @see QuestionRepositoryTest */
|
||||||
class QuestionRepository extends ServiceEntityRepository
|
class QuestionRepository extends ServiceEntityRepository
|
||||||
{
|
{
|
||||||
public function __construct(ManagerRegistry $registry)
|
public function __construct(ManagerRegistry $registry)
|
||||||
|
|||||||
@@ -10,8 +10,10 @@ use Safe\DateTimeImmutable;
|
|||||||
use Tvdt\Entity\Candidate;
|
use Tvdt\Entity\Candidate;
|
||||||
use Tvdt\Entity\Quiz;
|
use Tvdt\Entity\Quiz;
|
||||||
use Tvdt\Entity\QuizCandidate;
|
use Tvdt\Entity\QuizCandidate;
|
||||||
|
use Tvdt\Tests\Repository\QuizCandidateRepositoryTest;
|
||||||
|
|
||||||
/** @extends ServiceEntityRepository<QuizCandidate> */
|
/** @extends ServiceEntityRepository<QuizCandidate>
|
||||||
|
* @see QuizCandidateRepositoryTest */
|
||||||
class QuizCandidateRepository extends ServiceEntityRepository
|
class QuizCandidateRepository extends ServiceEntityRepository
|
||||||
{
|
{
|
||||||
public function __construct(ManagerRegistry $registry)
|
public function __construct(ManagerRegistry $registry)
|
||||||
|
|||||||
@@ -13,8 +13,10 @@ use Symfony\Component\Uid\Uuid;
|
|||||||
use Tvdt\Dto\Result;
|
use Tvdt\Dto\Result;
|
||||||
use Tvdt\Entity\Quiz;
|
use Tvdt\Entity\Quiz;
|
||||||
use Tvdt\Exception\ErrorClearingQuizException;
|
use Tvdt\Exception\ErrorClearingQuizException;
|
||||||
|
use Tvdt\Tests\Repository\QuizRepositoryTest;
|
||||||
|
|
||||||
/** @extends ServiceEntityRepository<Quiz> */
|
/** @extends ServiceEntityRepository<Quiz>
|
||||||
|
* @see QuizRepositoryTest */
|
||||||
class QuizRepository extends ServiceEntityRepository
|
class QuizRepository extends ServiceEntityRepository
|
||||||
{
|
{
|
||||||
public function __construct(ManagerRegistry $registry, private readonly LoggerInterface $logger)
|
public function __construct(ManagerRegistry $registry, private readonly LoggerInterface $logger)
|
||||||
|
|||||||
@@ -8,8 +8,10 @@ use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
|
|||||||
use Doctrine\Persistence\ManagerRegistry;
|
use Doctrine\Persistence\ManagerRegistry;
|
||||||
use Tvdt\Entity\Season;
|
use Tvdt\Entity\Season;
|
||||||
use Tvdt\Entity\User;
|
use Tvdt\Entity\User;
|
||||||
|
use Tvdt\Tests\Repository\SeasonRepositoryTest;
|
||||||
|
|
||||||
/** @extends ServiceEntityRepository<Season> */
|
/** @extends ServiceEntityRepository<Season>
|
||||||
|
* @see SeasonRepositoryTest */
|
||||||
class SeasonRepository extends ServiceEntityRepository
|
class SeasonRepository extends ServiceEntityRepository
|
||||||
{
|
{
|
||||||
public function __construct(ManagerRegistry $registry)
|
public function __construct(ManagerRegistry $registry)
|
||||||
|
|||||||
@@ -9,8 +9,10 @@ use Doctrine\Persistence\ManagerRegistry;
|
|||||||
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
|
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
|
||||||
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
|
use Symfony\Component\Security\Core\User\PasswordUpgraderInterface;
|
||||||
use Tvdt\Entity\User;
|
use Tvdt\Entity\User;
|
||||||
|
use Tvdt\Tests\Repository\UserRepositoryTest;
|
||||||
|
|
||||||
/** @extends ServiceEntityRepository<User> */
|
/** @extends ServiceEntityRepository<User>
|
||||||
|
* @see UserRepositoryTest */
|
||||||
class UserRepository extends ServiceEntityRepository implements PasswordUpgraderInterface
|
class UserRepository extends ServiceEntityRepository implements PasswordUpgraderInterface
|
||||||
{
|
{
|
||||||
public function __construct(ManagerRegistry $registry)
|
public function __construct(ManagerRegistry $registry)
|
||||||
|
|||||||
@@ -14,8 +14,10 @@ use Tvdt\Entity\Question;
|
|||||||
use Tvdt\Entity\Quiz;
|
use Tvdt\Entity\Quiz;
|
||||||
use Tvdt\Entity\Season;
|
use Tvdt\Entity\Season;
|
||||||
use Tvdt\Entity\User;
|
use Tvdt\Entity\User;
|
||||||
|
use Tvdt\Tests\Security\Voter\SeasonVoterTest;
|
||||||
|
|
||||||
/** @extends Voter<string, Season|Elimination|Quiz|Candidate|Answer|Question> */
|
/** @extends Voter<string, Season|Elimination|Quiz|Candidate|Answer|Question>
|
||||||
|
* @see SeasonVoterTest */
|
||||||
final class SeasonVoter extends Voter
|
final class SeasonVoter extends Voter
|
||||||
{
|
{
|
||||||
public const string EDIT = 'SEASON_EDIT';
|
public const string EDIT = 'SEASON_EDIT';
|
||||||
|
|||||||
Reference in New Issue
Block a user