Skip to content

Commit f5dbe04

Browse files
committed
Merge branch '7.0' into 7.1
* 7.0: Compare paths after realpath() has been applied to both fix AssetMapper usage without assets enabled Bump Symfony version to 7.0.10 Update VERSION for 7.0.9 Update CHANGELOG for 7.0.9 Bump Symfony version to 6.4.10 Update VERSION for 6.4.9 Update CHANGELOG for 6.4.9
2 parents 59c5295 + c40ec38 commit f5dbe04

File tree

8 files changed

+84
-1
lines changed

8 files changed

+84
-1
lines changed

CHANGELOG-7.0.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,42 @@ in 7.0 minor versions.
77
To get the diff for a specific change, go to https://github.com/symfony/symfony/commit/XXX where XXX is the change hash
88
To get the diff between two versions, go to https://github.com/symfony/symfony/compare/v7.0.0...v7.0.1
99

10+
* 7.0.9 (2024-06-28)
11+
12+
* bug #57345 [DependencyInjection] Fix regression in ordering service locators by priority (longwave)
13+
* bug #57553 [HttpKernel] Enable optional cache-warmers when cache-dir != build-dir (nicolas-grekas)
14+
* bug #57497 [String] Fixed u()->snake(), b()->snake() and s()->snake() methods (arczinosek)
15+
* bug #57574 [Filesystem] Fix Filesystem::remove() on Windows (nicolas-grekas)
16+
* bug #57572 [DoctrineBridge] Fix compat with DI >= 6.4 (nicolas-grekas)
17+
* bug #57538 [String] Add `alias` case to `EnglishInflector` (alexandre-daubois)
18+
* bug #57533 [FrameworkBundle] Throw runtime exception when trying to use asset-mapper while http-client is disabled (nicolas-grekas)
19+
* bug #57520 [SecurityBundle] Remove unused memory users’ `name` attribute from the XSD (MatTheCat)
20+
* feature #57557 Ibexa is sponsoring Symfony 5.4, thanks to them! \o/ (nicolas-grekas)
21+
* bug #57569 [HttpClient][Mailer] Revert "Let curl handle transfer encoding", use HTTP/1.1 for Mailgun (nicolas-grekas)
22+
* bug #57499 [Mailer] Add additional headers in Scaleway bridge (MrMicky-FR)
23+
* bug #57460 [VarExporter] fix contravariance problem with __unserialize() in lazy proxy (nikophil)
24+
* bug #57397 [VarDumper] Fix FFI caster test (alexandre-daubois)
25+
* bug #57453 [HttpClient] Fix parsing SSE (fancyweb)
26+
* bug #57467 [SecurityBundle] Add `provider` XML attribute to the authenticators it’s missing from (MatTheCat)
27+
* bug #57384 [Notifier] Fix thread key in GoogleChat bridge (romain-jacquart)
28+
* bug #57372 [HttpKernel][Security] Fix accessing session for stateless request (VincentLanglet)
29+
* bug #57112 [Messenger] Handle `AMQPConnectionException` when publishing a message (jwage)
30+
* bug #57341 [Serializer] properly handle invalid data for false/true types (xabbuh)
31+
* bug #57187 [Serializer] Fix `ObjectNormalizer` with property path (HypeMC)
32+
* bug #57355 [ErrorHandler] Fix rendered exception code highlighting on PHP 8.3 (tscni)
33+
* bug #57310 [DependencyInjection] Fix ternary in `AutowireCallable` attribute (alamirault)
34+
* bug #57273 [FrameworkBundle] Fix setting default context for certain normalizers (HypeMC)
35+
* bug #57395 [Notifier]  send the recipient phone number as an array (xabbuh)
36+
* bug #52699 [Serializer] [PropertyAccessor] Ignore non-collection interface generics (mtarld)
37+
* bug #54634 [String] Fix #54611 pluralization of -on ending words + singularization of -a ending foreign words (Geordie, DesLynx)
38+
* bug #57213 [Validator] [UniqueValidator] Use correct variable as parameter in (custom) error message (seho-nl, Sebastien Hoek)
39+
* bug #54920 [Messenger] Comply with Amazon SQS requirements for message body (VincentLanglet)
40+
* bug #57321 [AssetMapper] fix npm version constraint conversion (Jean-Beru)
41+
* bug #57110 [PhpUnitBridge] Fix error handler triggered outside of tests (HypeMC)
42+
* bug #57297 [FrameworkBundle] not registered definitions must not be modified (xabbuh)
43+
* bug #57234 [String] Fix Inflector for 'hardware' (podhy)
44+
* bug #57224 [Mime] Use streams instead of loading raw message generator into memory (bytestream)
45+
1046
* 7.0.8 (2024-06-02)
1147

1248
* bug #57284 [Mime] Fix TextPart using an unknown File (fabpot)

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,6 +1295,10 @@ private function registerAssetMapperConfiguration(array $config, ContainerBuilde
12951295
{
12961296
$loader->load('asset_mapper.php');
12971297

1298+
if (!$assetEnabled) {
1299+
$container->removeDefinition('asset_mapper.asset_package');
1300+
}
1301+
12981302
if (!$httpClientEnabled) {
12991303
$container->register('asset_mapper.http_client', HttpClientInterface::class)
13001304
->addTag('container.error')
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
3+
$container->loadFromExtension('framework', [
4+
'annotations' => false,
5+
'asset_mapper' => null,
6+
'assets' => false,
7+
'handle_all_throwables' => true,
8+
'http_method_override' => false,
9+
'php_errors' => ['log' => true],
10+
]);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" ?>
2+
<container xmlns="http://symfony.com/schema/dic/services"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xmlns:framework="http://symfony.com/schema/dic/symfony"
5+
xsi:schemaLocation="http://symfony.com/schema/dic/services https://symfony.com/schema/dic/services/services-1.0.xsd
6+
http://symfony.com/schema/dic/symfony https://symfony.com/schema/dic/symfony/symfony-1.0.xsd">
7+
8+
<framework:config http-method-override="false" handle-all-throwables="true">
9+
<framework:annotations enabled="false" />
10+
<framework:asset-mapper enabled="true" />
11+
<framework:assets enabled="false" />
12+
<framework:php-errors log="true" />
13+
</framework:config>
14+
</container>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
framework:
2+
annotations: false
3+
asset_mapper: ~
4+
assets: false
5+
handle_all_throwables: true
6+
http_method_override: false
7+
php_errors:
8+
log: true

src/Symfony/Bundle/FrameworkBundle/Tests/DependencyInjection/FrameworkExtensionTestCase.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2376,6 +2376,16 @@ public function testWebhookWithoutSerializer()
23762376
);
23772377
}
23782378

2379+
public function testAssetMapperWithoutAssets()
2380+
{
2381+
$container = $this->createContainerFromFile('asset_mapper_without_assets');
2382+
2383+
$this->assertTrue($container->has('asset_mapper'));
2384+
$this->assertFalse($container->has('asset_mapper.asset_package'));
2385+
$this->assertFalse($container->has('assets.packages'));
2386+
$this->assertFalse($container->has('assets._default_package'));
2387+
}
2388+
23792389
protected function createContainer(array $data = [])
23802390
{
23812391
return new ContainerBuilder(new EnvPlaceholderParameterBag(array_merge([

src/Symfony/Component/HttpKernel/Kernel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -528,6 +528,7 @@ protected function initializeContainer(): void
528528
touch($oldContainerDir.'.legacy');
529529
}
530530

531+
$buildDir = $this->container->getParameter('kernel.build_dir');
531532
$cacheDir = $this->container->getParameter('kernel.cache_dir');
532533
$preload = $this instanceof WarmableInterface ? (array) $this->warmUp($cacheDir, $buildDir) : [];
533534

src/Symfony/Component/HttpKernel/Tests/KernelTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,7 +452,7 @@ public function testWarmup()
452452
$kernel->boot();
453453

454454
$this->assertTrue($kernel->warmedUp);
455-
$this->assertSame($kernel->getBuildDir(), $kernel->warmedUpBuildDir);
455+
$this->assertSame(realpath($kernel->getBuildDir()), $kernel->warmedUpBuildDir);
456456
}
457457

458458
public function testServicesResetter()

0 commit comments

Comments
 (0)