File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -12,12 +12,13 @@ DSN. You will need a transport factory::
1212
1313 use Symfony\Component\Messenger\Transport\Receiver\ReceiverInterface;
1414 use Symfony\Component\Messenger\Transport\Sender\SenderInterface;
15+ use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
1516 use Symfony\Component\Messenger\Transport\TransportFactoryInterface;
1617 use Symfony\Component\Messenger\Transport\TransportInterface;
1718
1819 class YourTransportFactory implements TransportFactoryInterface
1920 {
20- public function createTransport(string $dsn, array $options): TransportInterface
21+ public function createTransport(string $dsn, array $options, SerializerInterface $serializer ): TransportInterface
2122 {
2223 return new YourTransport(/* ... */);
2324 }
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ stores an ``Address`` instance in the ``$address`` property::
155155 {
156156 $metadata->addPropertyConstraint('street', new Assert\NotBlank());
157157 $metadata->addPropertyConstraint('zipCode', new Assert\NotBlank());
158- $metadata->addPropertyConstraint('zipCode', new Assert\Length([" max" => 5]));
158+ $metadata->addPropertyConstraint('zipCode', new Assert\Length([' max' => 5]));
159159 }
160160 }
161161
@@ -170,7 +170,7 @@ stores an ``Address`` instance in the ``$address`` property::
170170 public static function loadValidatorMetadata(ClassMetadata $metadata)
171171 {
172172 $metadata->addPropertyConstraint('firstName', new Assert\NotBlank());
173- $metadata->addPropertyConstraint('firstName', new Assert\Length([" min" => 4]));
173+ $metadata->addPropertyConstraint('firstName', new Assert\Length([' min' => 4]));
174174 $metadata->addPropertyConstraint('lastName', new Assert\NotBlank());
175175 }
176176 }
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ Another possibility is setting public fields of the class directly::
353353 return function(ContainerConfigurator $configurator) {
354354 $services = $configurator->services();
355355
356- $services->set('app.newsletter_manager, NewsletterManager::class)
356+ $services->set('app.newsletter_manager' , NewsletterManager::class)
357357 ->property('mailer', ref('mailer'));
358358 };
359359
You can’t perform that action at this time.
0 commit comments