updating CHANGELOGs and fixing tests

This commit is contained in:
Ryan Weaver 2019-01-23 09:12:31 -05:00
parent b4788e4808
commit 4132bfebe7
6 changed files with 16 additions and 5 deletions

View File

@ -7,6 +7,12 @@ CHANGELOG
* Not passing the project directory to the constructor of the `AssetsInstallCommand` is deprecated. This argument will * Not passing the project directory to the constructor of the `AssetsInstallCommand` is deprecated. This argument will
be mandatory in 5.0. be mandatory in 5.0.
* [BC Break] When using Messenger, the default transport changed from
using Symfony's serializer service to use `PhpSerializer`, which uses
PHP's native `serialize()` and `unserialize()` functions. To use the
original serialization method, set the `framework.messenger.serializer.id`
config option to `messenger.transport.symfony_serializer`.
4.2.0 4.2.0
----- -----

View File

@ -24,7 +24,7 @@
</service> </service>
<service id="Symfony\Component\Messenger\Transport\Serialization\SerializerInterface" alias="messenger.transport.serializer" /> <service id="Symfony\Component\Messenger\Transport\Serialization\SerializerInterface" alias="messenger.transport.serializer" />
<service id="messenger.transport.native_php_serializer" class="Symfony\Component\Messenger\Transport\Serialization\Serializer" /> <service id="messenger.transport.native_php_serializer" class="Symfony\Component\Messenger\Transport\Serialization\Serializer" />
<!-- Middleware --> <!-- Middleware -->
<service id="messenger.middleware.handle_message" class="Symfony\Component\Messenger\Middleware\HandleMessageMiddleware" abstract="true"> <service id="messenger.middleware.handle_message" class="Symfony\Component\Messenger\Middleware\HandleMessageMiddleware" abstract="true">

View File

@ -19,7 +19,6 @@ use Symfony\Component\Config\Definition\Exception\InvalidConfigurationException;
use Symfony\Component\Config\Definition\Processor; use Symfony\Component\Config\Definition\Processor;
use Symfony\Component\Lock\Store\SemaphoreStore; use Symfony\Component\Lock\Store\SemaphoreStore;
use Symfony\Component\Messenger\MessageBusInterface; use Symfony\Component\Messenger\MessageBusInterface;
use Symfony\Component\Serializer\Serializer;
class ConfigurationTest extends TestCase class ConfigurationTest extends TestCase
{ {
@ -295,7 +294,7 @@ class ConfigurationTest extends TestCase
'routing' => [], 'routing' => [],
'transports' => [], 'transports' => [],
'serializer' => [ 'serializer' => [
'id' => !class_exists(FullStack::class) && class_exists(Serializer::class) ? 'messenger.transport.symfony_serializer' : null, 'id' => 'messenger.transport.native_php_serializer',
'format' => 'json', 'format' => 'json',
'context' => [], 'context' => [],
], ],

View File

@ -660,7 +660,7 @@ abstract class FrameworkExtensionTest extends TestCase
/** /**
* @expectedException \Symfony\Component\DependencyInjection\Exception\LogicException * @expectedException \Symfony\Component\DependencyInjection\Exception\LogicException
* @expectedExceptionMessage The default Messenger serializer cannot be enabled as the Serializer support is not available. Try enabling it or running "composer require symfony/serializer-pack". * @expectedExceptionMessage The Messenger serializer cannot be enabled as the Serializer support is not available. Try enabling it or running "composer require symfony/serializer-pack".
*/ */
public function testMessengerTransportConfigurationWithoutSerializer() public function testMessengerTransportConfigurationWithoutSerializer()
{ {

View File

@ -1,6 +1,12 @@
CHANGELOG CHANGELOG
========= =========
4.3.0
-----
* Added `PhpSerializer` which uses PHP's native `serialize()` and
`unserialize()` to serialize messages to a transport
4.2.0 4.2.0
----- -----

View File

@ -15,7 +15,7 @@ use Symfony\Component\Messenger\Envelope;
use Symfony\Component\Messenger\Exception\InvalidArgumentException; use Symfony\Component\Messenger\Exception\InvalidArgumentException;
/** /**
* @author Ruyan Weaver<ryan@symfonycasts.com> * @author Ryan Weaver<ryan@symfonycasts.com>
* *
* @experimental in 4.2 * @experimental in 4.2
*/ */