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::
12
12
13
13
use Symfony\Component\Messenger\Transport\Receiver\ReceiverInterface;
14
14
use Symfony\Component\Messenger\Transport\Sender\SenderInterface;
15
+ use Symfony\Component\Messenger\Transport\Serialization\SerializerInterface;
15
16
use Symfony\Component\Messenger\Transport\TransportFactoryInterface;
16
17
use Symfony\Component\Messenger\Transport\TransportInterface;
17
18
18
19
class YourTransportFactory implements TransportFactoryInterface
19
20
{
20
- public function createTransport(string $dsn, array $options): TransportInterface
21
+ public function createTransport(string $dsn, array $options, SerializerInterface $serializer ): TransportInterface
21
22
{
22
23
return new YourTransport(/* ... */);
23
24
}
Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ stores an ``Address`` instance in the ``$address`` property::
155
155
{
156
156
$metadata->addPropertyConstraint('street', new Assert\NotBlank());
157
157
$metadata->addPropertyConstraint('zipCode', new Assert\NotBlank());
158
- $metadata->addPropertyConstraint('zipCode', new Assert\Length([" max" => 5]));
158
+ $metadata->addPropertyConstraint('zipCode', new Assert\Length([' max' => 5]));
159
159
}
160
160
}
161
161
@@ -170,7 +170,7 @@ stores an ``Address`` instance in the ``$address`` property::
170
170
public static function loadValidatorMetadata(ClassMetadata $metadata)
171
171
{
172
172
$metadata->addPropertyConstraint('firstName', new Assert\NotBlank());
173
- $metadata->addPropertyConstraint('firstName', new Assert\Length([" min" => 4]));
173
+ $metadata->addPropertyConstraint('firstName', new Assert\Length([' min' => 4]));
174
174
$metadata->addPropertyConstraint('lastName', new Assert\NotBlank());
175
175
}
176
176
}
Original file line number Diff line number Diff line change @@ -353,7 +353,7 @@ Another possibility is setting public fields of the class directly::
353
353
return function(ContainerConfigurator $configurator) {
354
354
$services = $configurator->services();
355
355
356
- $services->set('app.newsletter_manager, NewsletterManager::class)
356
+ $services->set('app.newsletter_manager' , NewsletterManager::class)
357
357
->property('mailer', ref('mailer'));
358
358
};
359
359
You can’t perform that action at this time.
0 commit comments