Skip to content

Commit e6875bc

Browse files
committed
Merge branch '6.4' into 7.1
* 6.4: (23 commits) add translations for the Slug constraint [Messenger] Fix `TransportMessageIdStamp` not always added [DoctrineBridge] Fix compatibility to Doctrine persistence 2.5 in Doctrine Bridge 6.4 to avoid Projects stuck on 6.3 [PropertyInfo] Fix add missing composer conflict [ErrorHandler] Don't trigger "internal" deprecations for anonymous LazyClosure instances [VarDumper] Fix displaying closure's "this" from anonymous classes [Doctrine][Messenger] Prevents multiple TransportMessageIdStamp being stored in envelope [HttpKernel] Don't override existing LoggerInterface autowiring alias in LoggerPass reject inline notations followed by invalid content [Security] Fix triggering session tracking from ContextListener [AssetMapper] add leading slash to public prefix fix: modify Exception message parameter order [Yaml] Fix parsing of unquoted strings in Parser::lexUnquotedString() to ignore spaces Update exception.css Bump Symfony version to 6.4.18 Update VERSION for 6.4.17 Update CONTRIBUTORS for 6.4.17 Update CHANGELOG for 6.4.17 Fix exception thrown by YamlEncoder [AssetMapper] Fix JavaScript compiler create self-referencing imports ...
2 parents 51b99e2 + 86f4863 commit e6875bc

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2490,11 +2490,13 @@ private function registerHttpClientConfiguration(array $config, ContainerBuilder
24902490
->setFactory([ScopingHttpClient::class, 'forBaseUri'])
24912491
->setArguments([new Reference('http_client.transport'), $baseUri, $scopeConfig])
24922492
->addTag('http_client.client')
2493+
->addTag('kernel.reset', ['method' => 'reset', 'on_invalid' => 'ignore'])
24932494
;
24942495
} else {
24952496
$container->register($name, ScopingHttpClient::class)
24962497
->setArguments([new Reference('http_client.transport'), [$scope => $scopeConfig], $scope])
24972498
->addTag('http_client.client')
2499+
->addTag('kernel.reset', ['method' => 'reset', 'on_invalid' => 'ignore'])
24982500
;
24992501
}
25002502

Resources/config/http_client.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
->factory('current')
4040
->args([[service('http_client.transport')]])
4141
->tag('http_client.client')
42+
->tag('kernel.reset', ['method' => 'reset', 'on_invalid' => 'ignore'])
4243

4344
->alias(HttpClientInterface::class, 'http_client')
4445

Tests/DependencyInjection/FrameworkExtensionTestCase.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1931,8 +1931,12 @@ public function testHttpClientDefaultOptions()
19311931
];
19321932
$this->assertSame([$defaultOptions, 4], $container->getDefinition('http_client.transport')->getArguments());
19331933

1934+
$this->assertTrue($container->getDefinition('http_client')->hasTag('kernel.reset'));
1935+
19341936
$this->assertTrue($container->hasDefinition('foo'), 'should have the "foo" service.');
1935-
$this->assertSame(ScopingHttpClient::class, $container->getDefinition('foo')->getClass());
1937+
$definition = $container->getDefinition('foo');
1938+
$this->assertSame(ScopingHttpClient::class, $definition->getClass());
1939+
$this->assertTrue($definition->hasTag('kernel.reset'));
19361940
}
19371941

19381942
public function testScopedHttpClientWithoutQueryOption()

0 commit comments

Comments
 (0)