Merge branch '4.3' into 4.4
* 4.3: [FrameworkBundle] fix tests fix typo
This commit is contained in:
commit
3e48be0301
@ -7,8 +7,8 @@ $container->loadFromExtension('framework', [
|
|||||||
'default_serializer' => 'messenger.transport.symfony_serializer',
|
'default_serializer' => 'messenger.transport.symfony_serializer',
|
||||||
],
|
],
|
||||||
'routing' => [
|
'routing' => [
|
||||||
'Symfony\Component\Messenger\Tests\Fixtures\DummyMessage' => ['amqp', 'audit'],
|
'Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\DummyMessage' => ['amqp', 'audit'],
|
||||||
'Symfony\Component\Messenger\Tests\Fixtures\SecondMessage' => [
|
'Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\SecondMessage' => [
|
||||||
'senders' => ['amqp', 'audit'],
|
'senders' => ['amqp', 'audit'],
|
||||||
],
|
],
|
||||||
'*' => 'amqp',
|
'*' => 'amqp',
|
||||||
|
@ -9,11 +9,11 @@
|
|||||||
<framework:serializer enabled="true" />
|
<framework:serializer enabled="true" />
|
||||||
<framework:messenger>
|
<framework:messenger>
|
||||||
<framework:serializer default-serializer="messenger.transport.symfony_serializer" />
|
<framework:serializer default-serializer="messenger.transport.symfony_serializer" />
|
||||||
<framework:routing message-class="Symfony\Component\Messenger\Tests\Fixtures\DummyMessage">
|
<framework:routing message-class="Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\DummyMessage">
|
||||||
<framework:sender service="amqp" />
|
<framework:sender service="amqp" />
|
||||||
<framework:sender service="audit" />
|
<framework:sender service="audit" />
|
||||||
</framework:routing>
|
</framework:routing>
|
||||||
<framework:routing message-class="Symfony\Component\Messenger\Tests\Fixtures\SecondMessage">
|
<framework:routing message-class="Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\SecondMessage">
|
||||||
<framework:sender service="amqp" />
|
<framework:sender service="amqp" />
|
||||||
<framework:sender service="audit" />
|
<framework:sender service="audit" />
|
||||||
</framework:routing>
|
</framework:routing>
|
||||||
|
@ -4,8 +4,8 @@ framework:
|
|||||||
serializer:
|
serializer:
|
||||||
default_serializer: messenger.transport.symfony_serializer
|
default_serializer: messenger.transport.symfony_serializer
|
||||||
routing:
|
routing:
|
||||||
'Symfony\Component\Messenger\Tests\Fixtures\DummyMessage': [amqp, audit]
|
'Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\DummyMessage': [amqp, audit]
|
||||||
'Symfony\Component\Messenger\Tests\Fixtures\SecondMessage':
|
'Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\SecondMessage':
|
||||||
senders: [amqp, audit]
|
senders: [amqp, audit]
|
||||||
'*': amqp
|
'*': amqp
|
||||||
transports:
|
transports:
|
||||||
|
@ -15,6 +15,7 @@ use Doctrine\Common\Annotations\Annotation;
|
|||||||
use Psr\Log\LoggerAwareInterface;
|
use Psr\Log\LoggerAwareInterface;
|
||||||
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddAnnotationsCachedReaderPass;
|
use Symfony\Bundle\FrameworkBundle\DependencyInjection\Compiler\AddAnnotationsCachedReaderPass;
|
||||||
use Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension;
|
use Symfony\Bundle\FrameworkBundle\DependencyInjection\FrameworkExtension;
|
||||||
|
use Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger\DummyMessage;
|
||||||
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
|
use Symfony\Bundle\FrameworkBundle\Tests\TestCase;
|
||||||
use Symfony\Bundle\FullStack;
|
use Symfony\Bundle\FullStack;
|
||||||
use Symfony\Component\Cache\Adapter\AdapterInterface;
|
use Symfony\Component\Cache\Adapter\AdapterInterface;
|
||||||
@ -38,7 +39,6 @@ use Symfony\Component\DependencyInjection\Reference;
|
|||||||
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
||||||
use Symfony\Component\HttpClient\ScopingHttpClient;
|
use Symfony\Component\HttpClient\ScopingHttpClient;
|
||||||
use Symfony\Component\HttpKernel\DependencyInjection\LoggerPass;
|
use Symfony\Component\HttpKernel\DependencyInjection\LoggerPass;
|
||||||
use Symfony\Component\Messenger\Tests\Fixtures\DummyMessage;
|
|
||||||
use Symfony\Component\Messenger\Transport\TransportFactory;
|
use Symfony\Component\Messenger\Transport\TransportFactory;
|
||||||
use Symfony\Component\PropertyAccess\PropertyAccessor;
|
use Symfony\Component\PropertyAccess\PropertyAccessor;
|
||||||
use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader;
|
use Symfony\Component\Serializer\Mapping\Loader\AnnotationLoader;
|
||||||
|
@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger;
|
||||||
|
|
||||||
|
class DummyMessage implements DummyMessageInterface
|
||||||
|
{
|
||||||
|
private $message;
|
||||||
|
|
||||||
|
public function __construct(string $message)
|
||||||
|
{
|
||||||
|
$this->message = $message;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getMessage(): string
|
||||||
|
{
|
||||||
|
return $this->message;
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger;
|
||||||
|
|
||||||
|
interface DummyMessageInterface
|
||||||
|
{
|
||||||
|
}
|
@ -0,0 +1,7 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
namespace Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Messenger;
|
||||||
|
|
||||||
|
class SecondMessage
|
||||||
|
{
|
||||||
|
}
|
Reference in New Issue
Block a user