Skip to content

Commit f0dc474

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: [#12835] add use statement Update custom-transport.rst Update injection_types.rst Update Valid.rst
2 parents 3a7963f + eddef14 commit f0dc474

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

messenger/custom-transport.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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
}

reference/constraints/Valid.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

service_container/injection_types.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)