Skip to content

Commit 1eeda33

Browse files
committed
Minor tweaks
1 parent 3ba48f3 commit 1eeda33

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

messenger.rst

Lines changed: 23 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -898,12 +898,30 @@ up manually by calling the ``messenger:setup-transports`` command.
898898
To avoid tools like Doctrine Migrations from trying to remove this table because
899899
it's not part of your normal schema, you can set the ``schema_filter`` option:
900900

901-
.. code-block:: yaml
901+
.. configuration-block::
902+
903+
.. code-block:: yaml
904+
905+
# config/packages/doctrine.yaml
906+
doctrine:
907+
dbal:
908+
schema_filter: '~^(?!messenger_messages)~'
909+
910+
.. code-block:: xml
902911
903-
# config/packages/doctrine.yaml
904-
doctrine:
905-
dbal:
906-
schema_filter: '~^(?!messenger_messages)~'
912+
# config/packages/doctrine.xml
913+
<doctrine:dbal schema-filter="~^(?!messenger_messages)~" .../>
914+
915+
.. code-block:: php
916+
917+
# config/packages/doctrine.php
918+
$container->loadFromExtension('doctrine', [
919+
'dbal' => [
920+
'schema_filter' => '~^(?!messenger_messages)~',
921+
// ...
922+
],
923+
// ...
924+
]);
907925
908926
The transport has a number of options:
909927

security/remember_me.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,16 +256,19 @@ so ``DoctrineTokenProvider`` can store the tokens:
256256

257257
.. code-block:: yaml
258258
259+
# config/packages/doctrine.yaml
259260
doctrine:
260261
dbal:
261262
schema_filter: ~^(?!rememberme_token)~
262263
263264
.. code-block:: xml
264265
266+
# config/packages/doctrine.xml
265267
<doctrine:dbal schema-filter="~^(?!rememberme_token)~" .../>
266268
267269
.. code-block:: php
268270
271+
# config/packages/doctrine.php
269272
$container->loadFromExtension('doctrine', [
270273
'dbal' => [
271274
'schema_filter' => '~^(?!rememberme_token)~',

0 commit comments

Comments
 (0)