From 3e39550c902926a0f4091ab3393dfb930db6ca74 Mon Sep 17 00:00:00 2001 From: Marijn Doeve Date: Fri, 3 Oct 2025 22:37:45 +0200 Subject: [PATCH] Remove EasyAdmin integration - Removed EasyAdmin controllers and configurations. - Uninstalled `easycorp/easyadmin-bundle` and related dependencies. - Cleaned up all associated routes, bundles, and vendor references. --- .idea/TijdVoorDeTest.iml | 3 - .idea/php.xml | 7 +- Justfile | 6 +- composer.json | 7 +- composer.lock | 308 ++---------------- config/bundles.php | 4 - config/packages/twig_component.yaml | 5 - config/routes/easyadmin.yaml | 3 - src/Controller/Admin/AnswerCrudController.php | 17 - .../Admin/CandidateCrudController.php | 17 - src/Controller/Admin/DashboardController.php | 67 ---- .../Admin/GivenAnswerCrudController.php | 17 - .../Admin/QuestionCrudController.php | 17 - .../Admin/QuizCorrectionCrudController.php | 17 - src/Controller/Admin/QuizCrudController.php | 17 - src/Controller/Admin/SeasonCrudController.php | 17 - src/Controller/Admin/UserCrudController.php | 17 - symfony.lock | 27 +- 18 files changed, 35 insertions(+), 538 deletions(-) delete mode 100644 config/packages/twig_component.yaml delete mode 100644 config/routes/easyadmin.yaml delete mode 100644 src/Controller/Admin/AnswerCrudController.php delete mode 100644 src/Controller/Admin/CandidateCrudController.php delete mode 100644 src/Controller/Admin/DashboardController.php delete mode 100644 src/Controller/Admin/GivenAnswerCrudController.php delete mode 100644 src/Controller/Admin/QuestionCrudController.php delete mode 100644 src/Controller/Admin/QuizCorrectionCrudController.php delete mode 100644 src/Controller/Admin/QuizCrudController.php delete mode 100644 src/Controller/Admin/SeasonCrudController.php delete mode 100644 src/Controller/Admin/UserCrudController.php diff --git a/.idea/TijdVoorDeTest.iml b/.idea/TijdVoorDeTest.iml index 1a5a1b6..8ad3a30 100644 --- a/.idea/TijdVoorDeTest.iml +++ b/.idea/TijdVoorDeTest.iml @@ -116,15 +116,12 @@ - - - diff --git a/.idea/php.xml b/.idea/php.xml index 147edce..8b7becd 100644 --- a/.idea/php.xml +++ b/.idea/php.xml @@ -68,7 +68,6 @@ - @@ -78,7 +77,6 @@ - @@ -124,7 +122,6 @@ - @@ -142,7 +139,6 @@ - @@ -191,13 +187,14 @@ - + + diff --git a/Justfile b/Justfile index ac5a1fb..e261941 100644 --- a/Justfile +++ b/Justfile @@ -1,8 +1,8 @@ -up: - docker compose up -d +up *args: + docker compose up -d {{ args }} down *args: - docker compose down {{ args }} --remove-orphans + docker compose down --remove-orphans {{ args }} stop: docker compose stop diff --git a/composer.json b/composer.json index d7d664b..d4739e6 100644 --- a/composer.json +++ b/composer.json @@ -13,7 +13,6 @@ "doctrine/doctrine-bundle": "^2.16.2", "doctrine/doctrine-migrations-bundle": "^3.4.2", "doctrine/orm": "^3.5.2", - "easycorp/easyadmin-bundle": "^4.25.1", "phpdocumentor/reflection-docblock": "^5.6.3", "phpoffice/phpspreadsheet": "^5.1", "phpstan/phpdoc-parser": "^2.3", @@ -34,9 +33,11 @@ "symfony/security-bundle": "7.3.*", "symfony/security-csrf": "7.3.*", "symfony/serializer": "7.3.*", + "symfony/translation": "7.3.*", "symfony/twig-bundle": "7.3.*", "symfony/uid": "7.3.*", "symfony/ux-turbo": "^2.30.0", + "symfony/validator": "7.3.*", "symfony/yaml": "7.3.*", "symfonycasts/sass-bundle": "^0.8.3", "symfonycasts/verify-email-bundle": "^1.17.4", @@ -49,11 +50,11 @@ "doctrine/doctrine-fixtures-bundle": "^4.1", "friendsofphp/php-cs-fixer": "^3.88.2", "phpstan/extension-installer": "^1.4.3", - "phpstan/phpstan": "^2.1.29", + "phpstan/phpstan": "^2.1.30", "phpstan/phpstan-doctrine": "^2.0.6", "phpstan/phpstan-phpunit": "^2.0.7", "phpstan/phpstan-symfony": "^2.0.8", - "phpunit/phpunit": "^12.3.15", + "phpunit/phpunit": "^12.4.0", "rector/rector": "^2.1.7", "roave/security-advisories": "dev-latest", "symfony/browser-kit": "7.3.*", diff --git a/composer.lock b/composer.lock index fbd821e..75a8750 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "b0035e3726f72e1549e382ed9b170ae3", + "content-hash": "643289575c0db1293c406f8c21a598f3", "packages": [ { "name": "composer/pcre", @@ -1278,108 +1278,6 @@ }, "time": "2025-01-24T11:45:48+00:00" }, - { - "name": "easycorp/easyadmin-bundle", - "version": "v4.25.1", - "source": { - "type": "git", - "url": "https://github.com/EasyCorp/EasyAdminBundle.git", - "reference": "954e88c9cb004c3861b6ec6ae52241642995fb86" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/EasyCorp/EasyAdminBundle/zipball/954e88c9cb004c3861b6ec6ae52241642995fb86", - "reference": "954e88c9cb004c3861b6ec6ae52241642995fb86", - "shasum": "" - }, - "require": { - "doctrine/doctrine-bundle": "^2.5", - "doctrine/orm": "^2.12|^3.0", - "ext-json": "*", - "php": ">=8.1", - "symfony/asset": "^5.4|^6.0|^7.0", - "symfony/cache": "^5.4|^6.0|^7.0", - "symfony/config": "^5.4|^6.0|^7.0", - "symfony/dependency-injection": "^5.4|^6.0|^7.0", - "symfony/deprecation-contracts": "^3.0", - "symfony/doctrine-bridge": "^5.4|^6.0|^7.0", - "symfony/event-dispatcher": "^5.4|^6.0|^7.0", - "symfony/filesystem": "^5.4|^6.0|^7.0", - "symfony/form": "^5.4|^6.0|^7.0", - "symfony/framework-bundle": "^5.4|^6.0|^7.0", - "symfony/http-foundation": "^5.4|^6.0|^7.0", - "symfony/http-kernel": "^5.4|^6.0|^7.0", - "symfony/intl": "^5.4|^6.0|^7.0", - "symfony/property-access": "^5.4|^6.0|^7.0", - "symfony/security-bundle": "^5.4|^6.0|^7.0", - "symfony/string": "^5.4|^6.0|^7.0", - "symfony/translation": "^5.4|^6.0|^7.0", - "symfony/twig-bridge": "^5.4.48|^6.4.16|^7.1.9", - "symfony/twig-bundle": "^5.4|^6.0|^7.0", - "symfony/uid": "^5.4|^6.0|^7.0", - "symfony/ux-twig-component": "^2.21", - "symfony/validator": "^5.4|^6.0|^7.0", - "twig/extra-bundle": "^3.17", - "twig/html-extra": "^3.17", - "twig/twig": "^3.20" - }, - "require-dev": { - "doctrine/doctrine-fixtures-bundle": "^3.4|3.5.x-dev", - "phpstan/extension-installer": "^1.4", - "phpstan/phpstan": "^2.0", - "phpstan/phpstan-phpunit": "^2.0", - "phpstan/phpstan-strict-rules": "^2.0", - "phpstan/phpstan-symfony": "^2.0", - "psr/log": "^1.0", - "symfony/browser-kit": "^5.4|^6.0|^7.0", - "symfony/css-selector": "^5.4|^6.0|^7.0", - "symfony/debug-bundle": "^5.4|^6.0|^7.0", - "symfony/dom-crawler": "^5.4|^6.0|^7.0", - "symfony/expression-language": "^5.4|^6.0|^7.0", - "symfony/phpunit-bridge": "^6.1|^7.0", - "symfony/process": "^5.4|^6.0|^7.0", - "symfony/web-link": "^5.4|^6.0|^7.0" - }, - "type": "symfony-bundle", - "extra": { - "branch-alias": { - "dev-master": "4.0.x-dev" - } - }, - "autoload": { - "psr-4": { - "EasyCorp\\Bundle\\EasyAdminBundle\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Project Contributors", - "homepage": "https://github.com/EasyCorp/EasyAdminBundle/graphs/contributors" - } - ], - "description": "Admin generator for Symfony applications", - "homepage": "https://github.com/EasyCorp/EasyAdminBundle", - "keywords": [ - "admin", - "backend", - "generator" - ], - "support": { - "issues": "https://github.com/EasyCorp/EasyAdminBundle/issues", - "source": "https://github.com/EasyCorp/EasyAdminBundle/tree/v4.25.1" - }, - "funding": [ - { - "url": "https://github.com/javiereguiluz", - "type": "github" - } - ], - "time": "2025-09-10T05:00:12+00:00" - }, { "name": "egulias/email-validator", "version": "4.0.4", @@ -7701,93 +7599,6 @@ ], "time": "2025-08-27T15:25:48+00:00" }, - { - "name": "symfony/ux-twig-component", - "version": "v2.30.0", - "source": { - "type": "git", - "url": "https://github.com/symfony/ux-twig-component.git", - "reference": "2f445efda4d4400d4d1911ddf9710c366f339614" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/symfony/ux-twig-component/zipball/2f445efda4d4400d4d1911ddf9710c366f339614", - "reference": "2f445efda4d4400d4d1911ddf9710c366f339614", - "shasum": "" - }, - "require": { - "php": ">=8.1", - "symfony/dependency-injection": "^5.4|^6.0|^7.0|^8.0", - "symfony/deprecation-contracts": "^2.2|^3.0", - "symfony/event-dispatcher": "^5.4|^6.0|^7.0|^8.0", - "symfony/property-access": "^5.4|^6.0|^7.0|^8.0", - "twig/twig": "^3.10.3" - }, - "conflict": { - "symfony/config": "<5.4.0" - }, - "require-dev": { - "symfony/console": "^5.4|^6.0|^7.0|^8.0", - "symfony/css-selector": "^5.4|^6.0|^7.0|^8.0", - "symfony/dom-crawler": "^5.4|^6.0|^7.0|^8.0", - "symfony/framework-bundle": "^5.4|^6.0|^7.0|^8.0", - "symfony/phpunit-bridge": "^6.0|^7.0|^8.0", - "symfony/stimulus-bundle": "^2.9.1", - "symfony/twig-bundle": "^5.4|^6.0|^7.0|^8.0", - "symfony/webpack-encore-bundle": "^1.15|^2.3.0" - }, - "type": "symfony-bundle", - "extra": { - "thanks": { - "url": "https://github.com/symfony/ux", - "name": "symfony/ux" - } - }, - "autoload": { - "psr-4": { - "Symfony\\UX\\TwigComponent\\": "src/" - } - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Symfony Community", - "homepage": "https://symfony.com/contributors" - } - ], - "description": "Twig components for Symfony", - "homepage": "https://symfony.com", - "keywords": [ - "components", - "symfony-ux", - "twig" - ], - "support": { - "source": "https://github.com/symfony/ux-twig-component/tree/v2.30.0" - }, - "funding": [ - { - "url": "https://symfony.com/sponsor", - "type": "custom" - }, - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://github.com/nicolas-grekas", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", - "type": "tidelift" - } - ], - "time": "2025-08-27T15:25:48+00:00" - }, { "name": "symfony/validator", "version": "v7.3.4", @@ -8447,74 +8258,6 @@ ], "time": "2025-02-19T14:29:33+00:00" }, - { - "name": "twig/html-extra", - "version": "v3.21.0", - "source": { - "type": "git", - "url": "https://github.com/twigphp/html-extra.git", - "reference": "5442dd707601c83b8cd4233e37bb10ab8489a90f" - }, - "dist": { - "type": "zip", - "url": "https://api.github.com/repos/twigphp/html-extra/zipball/5442dd707601c83b8cd4233e37bb10ab8489a90f", - "reference": "5442dd707601c83b8cd4233e37bb10ab8489a90f", - "shasum": "" - }, - "require": { - "php": ">=8.1.0", - "symfony/deprecation-contracts": "^2.5|^3", - "symfony/mime": "^5.4|^6.4|^7.0", - "twig/twig": "^3.13|^4.0" - }, - "require-dev": { - "symfony/phpunit-bridge": "^6.4|^7.0" - }, - "type": "library", - "autoload": { - "files": [ - "Resources/functions.php" - ], - "psr-4": { - "Twig\\Extra\\Html\\": "" - }, - "exclude-from-classmap": [ - "/Tests/" - ] - }, - "notification-url": "https://packagist.org/downloads/", - "license": [ - "MIT" - ], - "authors": [ - { - "name": "Fabien Potencier", - "email": "fabien@symfony.com", - "homepage": "http://fabien.potencier.org", - "role": "Lead Developer" - } - ], - "description": "A Twig extension for HTML", - "homepage": "https://twig.symfony.com", - "keywords": [ - "html", - "twig" - ], - "support": { - "source": "https://github.com/twigphp/html-extra/tree/v3.21.0" - }, - "funding": [ - { - "url": "https://github.com/fabpot", - "type": "github" - }, - { - "url": "https://tidelift.com/funding/github/packagist/twig/twig", - "type": "tidelift" - } - ], - "time": "2025-02-19T14:29:33+00:00" - }, { "name": "twig/intl-extra", "version": "v3.21.0", @@ -9582,16 +9325,11 @@ }, { "name": "phpstan/phpstan", - "version": "2.1.29", - "source": { - "type": "git", - "url": "https://github.com/phpstan/phpstan-phar-composer-source.git", - "reference": "git" - }, + "version": "2.1.30", "dist": { "type": "zip", - "url": "https://api.github.com/repos/phpstan/phpstan/zipball/d618573eed4a1b6b75e37b2e0b65ac65c885d88e", - "reference": "d618573eed4a1b6b75e37b2e0b65ac65c885d88e", + "url": "https://api.github.com/repos/phpstan/phpstan/zipball/a4a7f159927983dd4f7c8020ed227d80b7f39d7d", + "reference": "a4a7f159927983dd4f7c8020ed227d80b7f39d7d", "shasum": "" }, "require": { @@ -9636,7 +9374,7 @@ "type": "github" } ], - "time": "2025-09-25T06:58:18+00:00" + "time": "2025-10-02T16:07:52+00:00" }, { "name": "phpstan/phpstan-doctrine", @@ -10170,16 +9908,16 @@ }, { "name": "phpunit/phpunit", - "version": "12.3.15", + "version": "12.4.0", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "b035ee2cd8ecad4091885b61017ebb1d80eb0e57" + "reference": "f62aab5794e36ccd26860db2d1bbf89ac19028d9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/b035ee2cd8ecad4091885b61017ebb1d80eb0e57", - "reference": "b035ee2cd8ecad4091885b61017ebb1d80eb0e57", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/f62aab5794e36ccd26860db2d1bbf89ac19028d9", + "reference": "f62aab5794e36ccd26860db2d1bbf89ac19028d9", "shasum": "" }, "require": { @@ -10215,7 +9953,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-main": "12.3-dev" + "dev-main": "12.4-dev" } }, "autoload": { @@ -10247,7 +9985,7 @@ "support": { "issues": "https://github.com/sebastianbergmann/phpunit/issues", "security": "https://github.com/sebastianbergmann/phpunit/security/policy", - "source": "https://github.com/sebastianbergmann/phpunit/tree/12.3.15" + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.4.0" }, "funding": [ { @@ -10271,7 +10009,7 @@ "type": "tidelift" } ], - "time": "2025-09-28T12:10:54+00:00" + "time": "2025-10-03T04:28:03+00:00" }, { "name": "react/cache", @@ -10865,12 +10603,12 @@ "source": { "type": "git", "url": "https://github.com/Roave/SecurityAdvisories.git", - "reference": "684ef27cdce62b6562f77a92dc76bdfb46542a2d" + "reference": "60ac6a710b7b0527786041ba96200bd49aa8de7e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/684ef27cdce62b6562f77a92dc76bdfb46542a2d", - "reference": "684ef27cdce62b6562f77a92dc76bdfb46542a2d", + "url": "https://api.github.com/repos/Roave/SecurityAdvisories/zipball/60ac6a710b7b0527786041ba96200bd49aa8de7e", + "reference": "60ac6a710b7b0527786041ba96200bd49aa8de7e", "shasum": "" }, "conflict": { @@ -10912,10 +10650,10 @@ "athlon1600/php-proxy-app": "<=3", "athlon1600/youtube-downloader": "<=4", "austintoddj/canvas": "<=3.4.2", - "auth0/auth0-php": ">=8.0.0.0-beta1,<8.14", - "auth0/login": "<7.17", - "auth0/symfony": "<5.4", - "auth0/wordpress": "<5.3", + "auth0/auth0-php": ">=3.3,<=8.16", + "auth0/login": "<=7.18", + "auth0/symfony": "<=5.4.1", + "auth0/wordpress": "<=5.3", "automad/automad": "<2.0.0.0-alpha5", "automattic/jetpack": "<9.8", "awesome-support/awesome-support": "<=6.0.7", @@ -11032,7 +10770,7 @@ "doctrine/mongodb-odm": "<1.0.2", "doctrine/mongodb-odm-bundle": "<3.0.1", "doctrine/orm": ">=1,<1.2.4|>=2,<2.4.8|>=2.5,<2.5.1|>=2.8.3,<2.8.4", - "dolibarr/dolibarr": "<=21.0.2", + "dolibarr/dolibarr": "<21.0.3", "dompdf/dompdf": "<2.0.4", "doublethreedigital/guest-entries": "<3.1.2", "drupal/admin_audit_trail": "<1.0.5", @@ -11221,7 +10959,7 @@ "joomla/archive": "<1.1.12|>=2,<2.0.1", "joomla/database": ">=1,<2.2|>=3,<3.4", "joomla/filesystem": "<1.6.2|>=2,<2.0.1", - "joomla/filter": "<1.4.4|>=2,<2.0.1", + "joomla/filter": "<2.0.6|>=3,<3.0.5|==4", "joomla/framework": "<1.5.7|>=2.5.4,<=3.8.12", "joomla/input": ">=2,<2.0.2", "joomla/joomla-cms": "<3.9.12|>=4,<4.4.13|>=5,<5.2.6", @@ -11639,7 +11377,7 @@ "thelia/thelia": ">=2.1,<2.1.3", "theonedemon/phpwhois": "<=4.2.5", "thinkcmf/thinkcmf": "<6.0.8", - "thorsten/phpmyfaq": "<=4.0.1", + "thorsten/phpmyfaq": "<=4.0.1|>=4.0.7,<4.0.13", "tikiwiki/tiki-manager": "<=17.1", "timber/timber": ">=0.16.6,<1.23.1|>=1.24,<1.24.1|>=2,<2.1", "tinymce/tinymce": "<7.2", @@ -11831,7 +11569,7 @@ "type": "tidelift" } ], - "time": "2025-09-24T21:05:21+00:00" + "time": "2025-10-03T15:05:30+00:00" }, { "name": "sebastian/cli-parser", diff --git a/config/bundles.php b/config/bundles.php index c5e0675..31046bc 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -5,7 +5,6 @@ declare(strict_types=1); use Doctrine\Bundle\DoctrineBundle\DoctrineBundle; use Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle; use Doctrine\Bundle\MigrationsBundle\DoctrineMigrationsBundle; -use EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle; use Sentry\SentryBundle\SentryBundle; use Symfony\Bundle\FrameworkBundle\FrameworkBundle; use Symfony\Bundle\MakerBundle\MakerBundle; @@ -14,7 +13,6 @@ use Symfony\Bundle\TwigBundle\TwigBundle; use Symfony\Bundle\WebProfilerBundle\WebProfilerBundle; use Symfony\UX\StimulusBundle\StimulusBundle; use Symfony\UX\Turbo\TurboBundle; -use Symfony\UX\TwigComponent\TwigComponentBundle; use SymfonyCasts\Bundle\VerifyEmail\SymfonyCastsVerifyEmailBundle; use Symfonycasts\SassBundle\SymfonycastsSassBundle; use Twig\Extra\TwigExtraBundle\TwigExtraBundle; @@ -28,8 +26,6 @@ return [ SecurityBundle::class => ['all' => true], WebProfilerBundle::class => ['dev' => true, 'test' => true], TwigExtraBundle::class => ['all' => true], - TwigComponentBundle::class => ['all' => true], - EasyAdminBundle::class => ['all' => true], DoctrineFixturesBundle::class => ['dev' => true, 'test' => true], SymfonyCastsVerifyEmailBundle::class => ['all' => true], SentryBundle::class => ['prod' => true], diff --git a/config/packages/twig_component.yaml b/config/packages/twig_component.yaml deleted file mode 100644 index 824390d..0000000 --- a/config/packages/twig_component.yaml +++ /dev/null @@ -1,5 +0,0 @@ -twig_component: - anonymous_template_directory: 'components/' - defaults: - # Namespace & directory for components - Tvdt\Twig\Components\: 'components/' diff --git a/config/routes/easyadmin.yaml b/config/routes/easyadmin.yaml deleted file mode 100644 index 083ca15..0000000 --- a/config/routes/easyadmin.yaml +++ /dev/null @@ -1,3 +0,0 @@ -easyadmin: - resource: . - type: easyadmin.routes diff --git a/src/Controller/Admin/AnswerCrudController.php b/src/Controller/Admin/AnswerCrudController.php deleted file mode 100644 index a21d6d6..0000000 --- a/src/Controller/Admin/AnswerCrudController.php +++ /dev/null @@ -1,17 +0,0 @@ - */ -class AnswerCrudController extends AbstractCrudController -{ - public static function getEntityFqcn(): string - { - return Answer::class; - } -} diff --git a/src/Controller/Admin/CandidateCrudController.php b/src/Controller/Admin/CandidateCrudController.php deleted file mode 100644 index 8e0b860..0000000 --- a/src/Controller/Admin/CandidateCrudController.php +++ /dev/null @@ -1,17 +0,0 @@ - */ -class CandidateCrudController extends AbstractCrudController -{ - public static function getEntityFqcn(): string - { - return Candidate::class; - } -} diff --git a/src/Controller/Admin/DashboardController.php b/src/Controller/Admin/DashboardController.php deleted file mode 100644 index 9561e32..0000000 --- a/src/Controller/Admin/DashboardController.php +++ /dev/null @@ -1,67 +0,0 @@ -container->get(AdminUrlGenerator::class); - - return $this->redirect($adminUrlGenerator->setController(SeasonCrudController::class)->generateUrl()); - - // Option 2. You can make your dashboard redirect to different pages depending on the user - // - // if ('jane' === $this->getUser()->getUsername()) { - // return $this->redirect('...'); - // } - - // Option 3. You can render some custom template to display a proper dashboard with widgets, etc. - // (tip: it's easier if your template extends from @EasyAdmin/page/content.html.twig) - // - // return $this->render('some/path/my-dashboard.html.twig'); - } - - #[\Override] - public function configureDashboard(): Dashboard - { - return Dashboard::new() - ->setTitle('TijdVoorDeTest'); - } - - #[\Override] - public function configureMenuItems(): iterable - { - yield MenuItem::linkToDashboard('Dashboard', 'fa fa-home'); - yield MenuItem::linkToCrud('Season', 'fas fa-list', Season::class); - yield MenuItem::linkToCrud('Quiz', 'fas fa-list', Quiz::class); - yield MenuItem::linkToCrud('Question', 'fas fa-list', Question::class); - yield MenuItem::linkToCrud('Candidate', 'fas fa-list', Candidate::class); - yield MenuItem::linkToCrud('Correction', 'fas fa-list', QuizCandidate::class); - yield MenuItem::linkToCrud('User', 'fas fa-list', User::class); - yield MenuItem::linkToCrud('Given Answer', 'fas fa-list', GivenAnswer::class); - yield MenuItem::linkToCrud('Answer', 'fas fa-list', Answer::class); - yield MenuItem::linkToLogout('Logout', 'fas fa-sign-out'); - } -} diff --git a/src/Controller/Admin/GivenAnswerCrudController.php b/src/Controller/Admin/GivenAnswerCrudController.php deleted file mode 100644 index 08eb451..0000000 --- a/src/Controller/Admin/GivenAnswerCrudController.php +++ /dev/null @@ -1,17 +0,0 @@ - */ -class GivenAnswerCrudController extends AbstractCrudController -{ - public static function getEntityFqcn(): string - { - return GivenAnswer::class; - } -} diff --git a/src/Controller/Admin/QuestionCrudController.php b/src/Controller/Admin/QuestionCrudController.php deleted file mode 100644 index 74ac70c..0000000 --- a/src/Controller/Admin/QuestionCrudController.php +++ /dev/null @@ -1,17 +0,0 @@ - */ -class QuestionCrudController extends AbstractCrudController -{ - public static function getEntityFqcn(): string - { - return Question::class; - } -} diff --git a/src/Controller/Admin/QuizCorrectionCrudController.php b/src/Controller/Admin/QuizCorrectionCrudController.php deleted file mode 100644 index 313f4fb..0000000 --- a/src/Controller/Admin/QuizCorrectionCrudController.php +++ /dev/null @@ -1,17 +0,0 @@ - */ -class QuizCorrectionCrudController extends AbstractCrudController -{ - public static function getEntityFqcn(): string - { - return QuizCandidate::class; - } -} diff --git a/src/Controller/Admin/QuizCrudController.php b/src/Controller/Admin/QuizCrudController.php deleted file mode 100644 index 61c8839..0000000 --- a/src/Controller/Admin/QuizCrudController.php +++ /dev/null @@ -1,17 +0,0 @@ - */ -class QuizCrudController extends AbstractCrudController -{ - public static function getEntityFqcn(): string - { - return Quiz::class; - } -} diff --git a/src/Controller/Admin/SeasonCrudController.php b/src/Controller/Admin/SeasonCrudController.php deleted file mode 100644 index dc07a4f..0000000 --- a/src/Controller/Admin/SeasonCrudController.php +++ /dev/null @@ -1,17 +0,0 @@ - */ -class SeasonCrudController extends AbstractCrudController -{ - public static function getEntityFqcn(): string - { - return Season::class; - } -} diff --git a/src/Controller/Admin/UserCrudController.php b/src/Controller/Admin/UserCrudController.php deleted file mode 100644 index e135072..0000000 --- a/src/Controller/Admin/UserCrudController.php +++ /dev/null @@ -1,17 +0,0 @@ - */ -class UserCrudController extends AbstractCrudController -{ - public static function getEntityFqcn(): string - { - return User::class; - } -} diff --git a/symfony.lock b/symfony.lock index 65730b1..331a929 100644 --- a/symfony.lock +++ b/symfony.lock @@ -47,15 +47,6 @@ "migrations/.gitignore" ] }, - "easycorp/easyadmin-bundle": { - "version": "4.23", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "main", - "version": "3.0", - "ref": "b131e6cbfe1b898a508987851963fff485986285" - } - }, "friendsofphp/php-cs-fixer": { "version": "3.65", "recipe": { @@ -276,12 +267,12 @@ ] }, "symfony/translation": { - "version": "7.2", + "version": "7.3", "recipe": { "repo": "github.com/symfony/recipes", "branch": "main", "version": "6.3", - "ref": "e28e27f53663cc34f0be2837aba18e3a1bef8e7b" + "ref": "620a1b84865ceb2ba304c8f8bf2a185fbf32a843" }, "files": [ "config/packages/translation.yaml", @@ -319,20 +310,8 @@ "ref": "c85ff94da66841d7ff087c19cbcd97a2df744ef9" } }, - "symfony/ux-twig-component": { - "version": "2.22", - "recipe": { - "repo": "github.com/symfony/recipes", - "branch": "main", - "version": "2.13", - "ref": "67814b5f9794798b885cec9d3f48631424449a01" - }, - "files": [ - "config/packages/twig_component.yaml" - ] - }, "symfony/validator": { - "version": "7.2", + "version": "7.3", "recipe": { "repo": "github.com/symfony/recipes", "branch": "main",