Skip to content

Commit 8c778cb

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: register only existing transport factories prevent deprecation being triggered from assertion bumped Symfony version to 4.4.6 updated VERSION for 4.4.5 updated CHANGELOG for 4.4.5
2 parents b04484c + 4ab8774 commit 8c778cb

File tree

5 files changed

+84
-8
lines changed

5 files changed

+84
-8
lines changed

CHANGELOG-4.4.md

Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,66 @@ in 4.4 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/v4.4.0...v4.4.1
99

10+
* 4.4.5 (2020-02-29)
11+
12+
* bug #35781 [Form] NumberToLocalizedStringTransformer return int if scale = 0 (VincentLanglet)
13+
* bug #35846 [Serializer] prevent method calls on null values (xabbuh)
14+
* bug #35897 [FrameworkBundle] add missing Messenger options to XML schema definition (xabbuh)
15+
* bug #35870 [ErrorHandler] fix parsing static return type on interface method annotation (alekitto)
16+
* bug #35839 [Security] Allow switching to another user when already switched (chalasr)
17+
* bug #35851 [DoctrineBridge] Use new Types::* constants and support new json types (fancyweb)
18+
* bug #35716 [PhpUnitBridge] Fix compatibility to PHPUnit 9 (Benjamin)
19+
* bug #35803 [Cache] Fix versioned namespace atomic clears (trvrnrth)
20+
* bug #35817 [DoctrineBridge] Use new Types::* constants and support new json type (fancyweb)
21+
* bug #35832 [Debug][ErrorHandler] improved deprecation notices for methods new args and return type (HeahDude)
22+
* bug #35827 [BrowserKit] Nested file array prevents uploading file (afilina)
23+
* bug #35707 [ExpressionLanguage] Fixed collisions of character operators with object properties (Andrej-in-ua)
24+
* bug #35794 [DoctrineBridge][DoctrineExtractor] Fix indexBy with custom and some core types (fancyweb)
25+
* bug #35787 [PhpUnitBridge] Use trait instead of extending deprecated class (marcello-moenkemeyer)
26+
* bug #35792 [Security] Prevent TypeError in case RememberMetoken has no attached user (nikophil)
27+
* bug #35735 [Routing] Add locale requirement for localized routes (mtarld)
28+
* bug #35772 [Config] don't throw on missing excluded paths (nicolas-grekas)
29+
* bug #35774 [Ldap] force default network timeout (nicolas-grekas)
30+
* bug #35702 [VarDumper] fixed DateCaster not displaying additional fields (Makdessi Alex)
31+
* bug #35722 [HttpKernel] Set previous exception when rethrown from controller resolver (danut007ro)
32+
* bug #35714 [HttpClient] Correctly remove trace level options for HttpCache (aschempp)
33+
* bug #35718 [HttpKernel] fix registering DebugHandlersListener regardless of the PHP_SAPI (nicolas-grekas)
34+
* bug #35728 Add missing autoload calls (greg0ire)
35+
* bug #35693 [Finder] Fix unix root dir issue (chr-hertel)
36+
* bug #35709 [HttpFoundation] fix not sending Content-Type header for 204 responses (Tobion)
37+
* bug #35710 [ErrorHandler] silence warning when zend.assertions=-1 (nicolas-grekas)
38+
* bug #35676 [Console] Handle zero row count in appendRow() for Table (Adam Prickett)
39+
* bug #35696 [Console] Don't load same-namespace alternatives on exact match (chalasr)
40+
* bug #35674 [HttpClient] fix getting response content after its destructor throwed an HttpExceptionInterface (nicolas-grekas)
41+
* bug #35672 [HttpClient] fix HttpClientDataCollector when handling canceled responses (thematchless)
42+
* bug #35641 [Process] throw when PhpProcess::fromShellCommandLine() is used (Guikingone)
43+
* bug #35645 [ErrorHandler] Never throw on warnings triggered by assert() and set assert.exception=1 in Debug::enable() (nicolas-grekas)
44+
* bug #35633 [Mailer] Do not ping the SMTP server before sending every message (micheh)
45+
* bug #33897 [Console] Consider STDIN interactive (ostrolucky)
46+
* bug #35605 [HttpFoundation][FrameworkBundle] fix support for samesite in session cookies (fabpot)
47+
* bug #35609 [DoctrineBridge] Fixed submitting ids with query limit or offset (HeahDude)
48+
* bug #35597 [PHPunit bridge] Provide current file as file path (greg0ire)
49+
* bug #33960 [DI] Unknown env prefix not recognized as such (ro0NL)
50+
* bug #35342 [DI] Fix support for multiple tags for locators and iterators (Alexandre Parent)
51+
* bug #33820 [PhpUnitBridge] Fix some errors when using serialized deprecations (l-vo)
52+
* bug #35553 Fix HTTP client config handling (julienfalque)
53+
* bug #35588 [ErrorHandler] Escape variable in Exception template (jderusse)
54+
* bug #35583 Add missing use statements (fabpot)
55+
* bug #35582 Missing use statement 4.4 (fabpot)
56+
* bug #34123 [Form] Fix handling of empty_data's \Closure value in Date/Time form types (yceruto)
57+
* bug #35537 [Config][XmlReferenceDumper] Prevent potential \TypeError (fancyweb)
58+
* bug #35227 [Mailer] Fix broken mandrill http send for recipients with names (vilius-g)
59+
* bug #35430 [Translation] prefer intl domain when adding messages to catalogue (Guite)
60+
* bug #35497 Fail on empty password verification (without warning on any implementation) (Stefan Kruppa)
61+
* bug #35546 [Validator] check for __get method existence if property is uninitialized (alekitto)
62+
* bug #35332 [Yaml][Inline] Fail properly on empty object tag and empty const tag (fancyweb)
63+
* bug #35489 [PhpUnitBridge] Fix running skipped tests expecting only deprecations (chalasr)
64+
* bug #35161 [FrameworkBundle] Check non-null type for numeric type (Arman-Hosseini)
65+
* bug #34059 [DomCrawler] Skip disabled fields processing in Form (sbogx)
66+
* bug #34114 [Console] SymonfyStyle - Check value isset to avoid PHP notice (leevigraham)
67+
* bug #35557 [Config] dont catch instances of Error (nicolas-grekas)
68+
* bug #35562 [HttpClient] fix HttpClientDataCollector when handling canceled responses (nicolas-grekas)
69+
1070
* 4.4.4 (2020-01-31)
1171

1272
* bug #35530 [HttpClient] Fix regex bearer (noniagriconomie)

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

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@
8484
use Symfony\Component\Messenger\Handler\MessageHandlerInterface;
8585
use Symfony\Component\Messenger\MessageBus;
8686
use Symfony\Component\Messenger\MessageBusInterface;
87+
use Symfony\Component\Messenger\Transport\AmqpExt\AmqpTransportFactory;
88+
use Symfony\Component\Messenger\Transport\RedisExt\RedisTransportFactory;
8789
use Symfony\Component\Messenger\Transport\TransportFactoryInterface;
8890
use Symfony\Component\Messenger\Transport\TransportInterface;
8991
use Symfony\Component\Mime\MimeTypeGuesserInterface;
@@ -312,6 +314,16 @@ public function load(array $configs, ContainerBuilder $container)
312314
$container->removeDefinition('console.command.messenger_failed_messages_show');
313315
$container->removeDefinition('console.command.messenger_failed_messages_remove');
314316
$container->removeDefinition('cache.messenger.restart_workers_signal');
317+
318+
if ($container->hasDefinition('messenger.transport.amqp.factory') && class_exists(AmqpTransportFactory::class)) {
319+
$container->getDefinition('messenger.transport.amqp.factory')
320+
->addTag('messenger.transport_factory');
321+
}
322+
323+
if ($container->hasDefinition('messenger.transport.redis.factory') && class_exists(RedisTransportFactory::class)) {
324+
$container->getDefinition('messenger.transport.redis.factory')
325+
->addTag('messenger.transport_factory');
326+
}
315327
}
316328

317329
if ($this->httpClientConfigEnabled = $this->isConfigEnabled($container, $config['http_client'])) {
@@ -1567,6 +1579,14 @@ private function registerMessengerConfiguration(array $config, ContainerBuilder
15671579

15681580
$loader->load('messenger.xml');
15691581

1582+
if (class_exists(AmqpTransportFactory::class)) {
1583+
$container->getDefinition('messenger.transport.amqp.factory')->addTag('messenger.transport_factory');
1584+
}
1585+
1586+
if (class_exists(RedisTransportFactory::class)) {
1587+
$container->getDefinition('messenger.transport.redis.factory')->addTag('messenger.transport_factory');
1588+
}
1589+
15701590
if (null === $config['default_bus'] && 1 === \count($config['buses'])) {
15711591
$config['default_bus'] = key($config['buses']);
15721592
}

src/Symfony/Bundle/FrameworkBundle/Resources/config/messenger.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,9 @@
6767
<argument type="tagged_iterator" tag="messenger.transport_factory" />
6868
</service>
6969

70-
<service id="messenger.transport.amqp.factory" class="Symfony\Component\Messenger\Transport\AmqpExt\AmqpTransportFactory">
71-
<tag name="messenger.transport_factory" />
72-
</service>
70+
<service id="messenger.transport.amqp.factory" class="Symfony\Component\Messenger\Transport\AmqpExt\AmqpTransportFactory"/>
7371

74-
<service id="messenger.transport.redis.factory" class="Symfony\Component\Messenger\Transport\RedisExt\RedisTransportFactory">
75-
<tag name="messenger.transport_factory" />
76-
</service>
72+
<service id="messenger.transport.redis.factory" class="Symfony\Component\Messenger\Transport\RedisExt\RedisTransportFactory"/>
7773

7874
<service id="messenger.transport.sync.factory" class="Symfony\Component\Messenger\Transport\Sync\SyncTransportFactory">
7975
<tag name="messenger.transport_factory" />

src/Symfony/Component/DomCrawler/Test/Constraint/CrawlerSelectorTextContains.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function matches($crawler): bool
4545
return false;
4646
}
4747

48-
return false !== mb_strpos($crawler->text(), $this->expectedText);
48+
return false !== mb_strpos($crawler->text(null, false), $this->expectedText);
4949
}
5050

5151
/**

src/Symfony/Component/DomCrawler/Test/Constraint/CrawlerSelectorTextSame.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ protected function matches($crawler): bool
4545
return false;
4646
}
4747

48-
return $this->expectedText === trim($crawler->text());
48+
return $this->expectedText === trim($crawler->text(null, false));
4949
}
5050

5151
/**

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy