Skip to content

Commit

Permalink
fix: update serialized
Browse files Browse the repository at this point in the history
  • Loading branch information
Yozhef committed Aug 25, 2021
1 parent b6af1e2 commit ba9646e
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/Context/MessengerContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,18 @@
use Exception;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\Messenger\Transport\InMemoryTransport;
use Symfony\Component\Serializer\Serializer;
use Symfony\Component\Serializer\SerializerInterface;

class MessengerContext implements Context
{
use ArraySimilarTrait;

private ContainerInterface $container;
private Serializer $serializer;
private SerializerInterface $serializer;

public function __construct(
ContainerInterface $container,
Serializer $serializer
SerializerInterface $serializer
) {
$this->container = $container;
$this->serializer = $serializer;
Expand Down Expand Up @@ -189,7 +189,7 @@ private function getMessengerTransportByName(string $busName): InMemoryTransport
$hasTransport = $this->container->has($fullName);

if ($hasTransport === false) {
throw new Exception('Transport' . $fullName . ' not found');
throw new Exception('Transport ' . $fullName . ' not found');
}

$transport = $this->container->get($fullName);
Expand All @@ -199,7 +199,7 @@ private function getMessengerTransportByName(string $busName): InMemoryTransport
}

throw new Exception(
'In memory transport' . $fullName . ' not found'
'In memory transport ' . $fullName . ' not found'
);
}
}

0 comments on commit ba9646e

Please sign in to comment.