1 Commits

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

View File

@@ -28,7 +28,7 @@
"symfony/flex": "^2.10.0", "symfony/flex": "^2.10.0",
"symfony/form": "7.4.*", "symfony/form": "7.4.*",
"symfony/framework-bundle": "7.4.*", "symfony/framework-bundle": "7.4.*",
"symfony/mailer": "8.0.*", "symfony/mailer": "7.4.*",
"symfony/property-access": "7.4.*", "symfony/property-access": "7.4.*",
"symfony/property-info": "7.4.*", "symfony/property-info": "7.4.*",
"symfony/runtime": "7.4.*", "symfony/runtime": "7.4.*",

65
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": "37d53e554a9b7742bf0ad8bef81673d5", "content-hash": "8cc636185a72a4be33cb8005bb2ec45d",
"packages": [ "packages": [
{ {
"name": "composer/pcre", "name": "composer/pcre",
@@ -5266,35 +5266,39 @@
}, },
{ {
"name": "symfony/mailer", "name": "symfony/mailer",
"version": "v8.0.0", "version": "v7.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/mailer.git", "url": "https://github.com/symfony/mailer.git",
"reference": "f9b546f0e28cbd08fd5d03f2472aad913a9398f9" "reference": "a3d9eea8cfa467ece41f0f54ba28185d74bd53fd"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/mailer/zipball/f9b546f0e28cbd08fd5d03f2472aad913a9398f9", "url": "https://api.github.com/repos/symfony/mailer/zipball/a3d9eea8cfa467ece41f0f54ba28185d74bd53fd",
"reference": "f9b546f0e28cbd08fd5d03f2472aad913a9398f9", "reference": "a3d9eea8cfa467ece41f0f54ba28185d74bd53fd",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"egulias/email-validator": "^2.1.10|^3|^4", "egulias/email-validator": "^2.1.10|^3|^4",
"php": ">=8.4", "php": ">=8.2",
"psr/event-dispatcher": "^1", "psr/event-dispatcher": "^1",
"psr/log": "^1|^2|^3", "psr/log": "^1|^2|^3",
"symfony/event-dispatcher": "^7.4|^8.0", "symfony/event-dispatcher": "^6.4|^7.0|^8.0",
"symfony/mime": "^7.4|^8.0", "symfony/mime": "^7.2|^8.0",
"symfony/service-contracts": "^2.5|^3" "symfony/service-contracts": "^2.5|^3"
}, },
"conflict": { "conflict": {
"symfony/http-client-contracts": "<2.5" "symfony/http-client-contracts": "<2.5",
"symfony/http-kernel": "<6.4",
"symfony/messenger": "<6.4",
"symfony/mime": "<6.4",
"symfony/twig-bridge": "<6.4"
}, },
"require-dev": { "require-dev": {
"symfony/console": "^7.4|^8.0", "symfony/console": "^6.4|^7.0|^8.0",
"symfony/http-client": "^7.4|^8.0", "symfony/http-client": "^6.4|^7.0|^8.0",
"symfony/messenger": "^7.4|^8.0", "symfony/messenger": "^6.4|^7.0|^8.0",
"symfony/twig-bridge": "^7.4|^8.0" "symfony/twig-bridge": "^6.4|^7.0|^8.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@@ -5322,7 +5326,7 @@
"description": "Helps sending emails", "description": "Helps sending emails",
"homepage": "https://symfony.com", "homepage": "https://symfony.com",
"support": { "support": {
"source": "https://github.com/symfony/mailer/tree/v8.0.0" "source": "https://github.com/symfony/mailer/tree/v7.4.0"
}, },
"funding": [ "funding": [
{ {
@@ -5342,41 +5346,44 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2025-11-27T08:09:45+00:00" "time": "2025-11-21T15:26:00+00:00"
}, },
{ {
"name": "symfony/mime", "name": "symfony/mime",
"version": "v8.0.0", "version": "v7.4.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/symfony/mime.git", "url": "https://github.com/symfony/mime.git",
"reference": "7576ce3b2b4d3a2a7fe7020a07a392065d6ffd40" "reference": "bdb02729471be5d047a3ac4a69068748f1a6be7a"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/symfony/mime/zipball/7576ce3b2b4d3a2a7fe7020a07a392065d6ffd40", "url": "https://api.github.com/repos/symfony/mime/zipball/bdb02729471be5d047a3ac4a69068748f1a6be7a",
"reference": "7576ce3b2b4d3a2a7fe7020a07a392065d6ffd40", "reference": "bdb02729471be5d047a3ac4a69068748f1a6be7a",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=8.4", "php": ">=8.2",
"symfony/deprecation-contracts": "^2.5|^3",
"symfony/polyfill-intl-idn": "^1.10", "symfony/polyfill-intl-idn": "^1.10",
"symfony/polyfill-mbstring": "^1.0" "symfony/polyfill-mbstring": "^1.0"
}, },
"conflict": { "conflict": {
"egulias/email-validator": "~3.0.0", "egulias/email-validator": "~3.0.0",
"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/mailer": "<6.4",
"symfony/serializer": "<6.4.3|>7.0,<7.0.3"
}, },
"require-dev": { "require-dev": {
"egulias/email-validator": "^2.1.10|^3.1|^4", "egulias/email-validator": "^2.1.10|^3.1|^4",
"league/html-to-markdown": "^5.0", "league/html-to-markdown": "^5.0",
"phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0", "phpdocumentor/reflection-docblock": "^3.0|^4.0|^5.0",
"symfony/dependency-injection": "^7.4|^8.0", "symfony/dependency-injection": "^6.4|^7.0|^8.0",
"symfony/process": "^7.4|^8.0", "symfony/process": "^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/serializer": "^7.4|^8.0" "symfony/serializer": "^6.4.3|^7.0.3|^8.0"
}, },
"type": "library", "type": "library",
"autoload": { "autoload": {
@@ -5408,7 +5415,7 @@
"mime-type" "mime-type"
], ],
"support": { "support": {
"source": "https://github.com/symfony/mime/tree/v8.0.0" "source": "https://github.com/symfony/mime/tree/v7.4.0"
}, },
"funding": [ "funding": [
{ {
@@ -5428,7 +5435,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2025-11-16T10:17:21+00:00" "time": "2025-11-16T10:14:42+00:00"
}, },
{ {
"name": "symfony/options-resolver", "name": "symfony/options-resolver",
@@ -13633,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;