Skip to content

Commit e055880

Browse files
committed
Utilisation de la clock Symfony
1 parent b794793 commit e055880

File tree

6 files changed

+3
-45
lines changed

6 files changed

+3
-45
lines changed

app/config/services.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,6 @@ services:
5454
autoconfigure: true
5555
public: false
5656

57-
Psr\Clock\ClockInterface: '@AppBundle\Clock\NativeClock'
58-
5957
### Pages legacy - DEBUT
6058
# Les anciennes pages ont besoin que certains services soient publics,
6159
# car récupérés via `$container->get()`. Ils sont listés ici :

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@
4343
"setasign/tfpdf": "^1.33",
4444
"smarty/smarty": "^5.4",
4545
"symfony/asset": "6.4.*",
46+
"symfony/clock": "7.2.*",
4647
"symfony/console": "6.4.*",
4748
"symfony/expression-language": "6.4.*",
4849
"symfony/form": "6.4.*",

composer.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sources/AppBundle/Clock/NativeClock.php

Lines changed: 0 additions & 23 deletions
This file was deleted.

tests/integration/PlanetePHP/FeedCrawlerTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@
55
namespace PlanetePHP\IntegrationTests;
66

77
use Afup\Tests\Support\IntegrationTestCase;
8-
use Afup\Tests\Support\MockClock;
98
use PlanetePHP\DisplayableFeedArticle;
109
use PlanetePHP\FeedArticleRepository;
1110
use PlanetePHP\FeedCrawler;
1211
use PlanetePHP\FeedRepository;
1312
use PlanetePHP\SymfonyFeedClient;
1413
use Psr\Log\NullLogger;
14+
use Symfony\Component\Clock\MockClock;
1515
use Symfony\Component\HttpClient\MockHttpClient;
1616
use Symfony\Component\HttpClient\Response\MockResponse;
1717

tests/support/MockClock.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

0 commit comments

Comments
 (0)