1 Commits

Author SHA1 Message Date
7a29bb49ea Try with services.yaml 2025-12-01 10:02:52 +01:00
5 changed files with 51 additions and 32 deletions

View File

@@ -34,7 +34,7 @@
"symfony/runtime": "7.4.*", "symfony/runtime": "7.4.*",
"symfony/security-bundle": "7.4.*", "symfony/security-bundle": "7.4.*",
"symfony/security-csrf": "7.4.*", "symfony/security-csrf": "7.4.*",
"symfony/serializer": "8.0.*", "symfony/serializer": "7.4.*",
"symfony/translation": "7.4.*", "symfony/translation": "7.4.*",
"symfony/twig-bundle": "7.4.*", "symfony/twig-bundle": "7.4.*",
"symfony/uid": "7.4.*", "symfony/uid": "7.4.*",

68
composer.lock generated
View File

@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "b33ac1d3052c23a157b3a14a93c46678", "content-hash": "8cc636185a72a4be33cb8005bb2ec45d",
"packages": [ "packages": [
{ {
"name": "composer/pcre", "name": "composer/pcre",
@@ -6872,50 +6872,58 @@
}, },
{ {
"name": "symfony/serializer", "name": "symfony/serializer",
"version": "v8.0.0", "version": "v7.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/serializer.git", "url": "https://github.com/symfony/serializer.git",
"reference": "f37bc903a6676900f67c9803f0827718028cf0a8" "reference": "5a3bbf317b3f1025126b6d9debce53515601ab43"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/serializer/zipball/f37bc903a6676900f67c9803f0827718028cf0a8", "url": "https://api.github.com/repos/symfony/serializer/zipball/5a3bbf317b3f1025126b6d9debce53515601ab43",
"reference": "f37bc903a6676900f67c9803f0827718028cf0a8", "reference": "5a3bbf317b3f1025126b6d9debce53515601ab43",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.4", "php": ">=8.2",
"symfony/polyfill-ctype": "^1.8" "symfony/deprecation-contracts": "^2.5|^3",
"symfony/polyfill-ctype": "~1.8",
"symfony/polyfill-php84": "^1.30"
}, },
"conflict": { "conflict": {
"phpdocumentor/reflection-docblock": "<3.2.2", "phpdocumentor/reflection-docblock": "<3.2.2",
"phpdocumentor/type-resolver": "<1.4.0" "phpdocumentor/type-resolver": "<1.4.0",
"symfony/dependency-injection": "<6.4",
"symfony/property-access": "<6.4",
"symfony/property-info": "<6.4",
"symfony/uid": "<6.4",
"symfony/validator": "<6.4",
"symfony/yaml": "<6.4"
}, },
"require-dev": { "require-dev": {
"phpdocumentor/reflection-docblock": "^3.2|^4.0|^5.0", "phpdocumentor/reflection-docblock": "^3.2|^4.0|^5.0",
"phpstan/phpdoc-parser": "^1.0|^2.0", "phpstan/phpdoc-parser": "^1.0|^2.0",
"seld/jsonlint": "^1.10", "seld/jsonlint": "^1.10",
"symfony/cache": "^7.4|^8.0", "symfony/cache": "^6.4|^7.0|^8.0",
"symfony/config": "^7.4|^8.0", "symfony/config": "^6.4|^7.0|^8.0",
"symfony/console": "^7.4|^8.0", "symfony/console": "^6.4|^7.0|^8.0",
"symfony/dependency-injection": "^7.4|^8.0", "symfony/dependency-injection": "^7.2|^8.0",
"symfony/error-handler": "^7.4|^8.0", "symfony/error-handler": "^6.4|^7.0|^8.0",
"symfony/filesystem": "^7.4|^8.0", "symfony/filesystem": "^6.4|^7.0|^8.0",
"symfony/form": "^7.4|^8.0", "symfony/form": "^6.4|^7.0|^8.0",
"symfony/http-foundation": "^7.4|^8.0", "symfony/http-foundation": "^6.4|^7.0|^8.0",
"symfony/http-kernel": "^7.4|^8.0", "symfony/http-kernel": "^6.4|^7.0|^8.0",
"symfony/messenger": "^7.4|^8.0", "symfony/messenger": "^6.4|^7.0|^8.0",
"symfony/mime": "^7.4|^8.0", "symfony/mime": "^6.4|^7.0|^8.0",
"symfony/property-access": "^7.4|^8.0", "symfony/property-access": "^6.4|^7.0|^8.0",
"symfony/property-info": "^7.4|^8.0", "symfony/property-info": "^6.4|^7.0|^8.0",
"symfony/translation-contracts": "^2.5|^3", "symfony/translation-contracts": "^2.5|^3",
"symfony/type-info": "^7.4|^8.0", "symfony/type-info": "^7.1.8|^8.0",
"symfony/uid": "^7.4|^8.0", "symfony/uid": "^6.4|^7.0|^8.0",
"symfony/validator": "^7.4|^8.0", "symfony/validator": "^6.4|^7.0|^8.0",
"symfony/var-dumper": "^7.4|^8.0", "symfony/var-dumper": "^6.4|^7.0|^8.0",
"symfony/var-exporter": "^7.4|^8.0", "symfony/var-exporter": "^6.4|^7.0|^8.0",
"symfony/yaml": "^7.4|^8.0" "symfony/yaml": "^6.4|^7.0|^8.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@@ -6943,7 +6951,7 @@
"description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.", "description": "Handles serializing and deserializing data structures, including object graphs, into array structures or other formats like XML and JSON.",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/serializer/tree/v8.0.0" "source": "https://github.com/symfony/serializer/tree/v7.4.0"
}, },
"funding": [ "funding": [
{ {
@@ -6963,7 +6971,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2025-11-20T12:42:53+00:00" "time": "2025-11-18T13:23:20+00:00"
}, },
{ {
"name": "symfony/service-contracts", "name": "symfony/service-contracts",
@@ -13632,5 +13640,5 @@
"ext-iconv": "*" "ext-iconv": "*"
}, },
"platform-dev": {}, "platform-dev": {},
"plugin-api-version": "2.6.0" "plugin-api-version": "2.9.0"
} }

View File

@@ -22,3 +22,13 @@ services:
# add more service definitions when explicit configuration is needed # add more service definitions when explicit configuration is needed
# please note that last definitions always *replace* previous ones # please note that last definitions always *replace* previous ones
when@prod:
services:
Tvdt\:
resource: '../src/'
exclude:
- '../src/DependencyInjection/'
- '../src/Entity/'
- '../src/Kernel.php'
- '../src/DataFixtures'

View File

@@ -9,6 +9,7 @@ use Doctrine\Bundle\FixturesBundle\FixtureGroupInterface;
use Doctrine\Common\DataFixtures\DependentFixtureInterface; use Doctrine\Common\DataFixtures\DependentFixtureInterface;
use Doctrine\Persistence\ObjectManager; use Doctrine\Persistence\ObjectManager;
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface; use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
use Tvdt\DataFixtures\KrtekFixtures;
use Tvdt\Entity\Season; use Tvdt\Entity\Season;
use Tvdt\Entity\User; use Tvdt\Entity\User;

View File

@@ -6,8 +6,8 @@ namespace Tvdt\Tests\Repository;
use PHPUnit\Framework\Attributes\CoversClass; use PHPUnit\Framework\Attributes\CoversClass;
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface; use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
use Tvdt\DataFixtures\TestFixtures;
use Tvdt\Repository\UserRepository; use Tvdt\Repository\UserRepository;
use Tvdt\DataFixtures\TestFixtures;
use function PHPUnit\Framework\assertEmpty; use function PHPUnit\Framework\assertEmpty;