-
-
Notifications
You must be signed in to change notification settings - Fork 455
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1159 from nicolas-grekas/msg
Fix compat with Messenger 5.1
- Loading branch information
Showing
10 changed files
with
94 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
21 changes: 21 additions & 0 deletions
21
...njection/Fixtures/config/xml/well_known_schema_filter_default_tables_messenger_legacy.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" ?> | ||
|
||
<srv:container xmlns="http://symfony.com/schema/dic/doctrine" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:srv="http://symfony.com/schema/dic/services" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd | ||
http://symfony.com/schema/dic/doctrine http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd"> | ||
|
||
<config> | ||
<dbal default-connection="connection1"> | ||
<connection name="connection1" schema-filter="~^(?!t_)~" /> | ||
<connection name="connection2" /> | ||
<connection name="connection3" /> | ||
</dbal> | ||
</config> | ||
|
||
<srv:services> | ||
<srv:service id="well_known_filter" alias="doctrine.dbal.well_known_schema_asset_filter" public="true" /> | ||
<srv:service id="symfony.messenger" class="Symfony\Component\Messenger\Transport\Doctrine\Connection" /> | ||
</srv:services> | ||
</srv:container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
...ction/Fixtures/config/xml/well_known_schema_filter_overridden_tables_messenger_legacy.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" ?> | ||
|
||
<srv:container xmlns="http://symfony.com/schema/dic/doctrine" | ||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xmlns:srv="http://symfony.com/schema/dic/services" | ||
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd | ||
http://symfony.com/schema/dic/doctrine http://symfony.com/schema/dic/doctrine/doctrine-1.0.xsd"> | ||
|
||
<config> | ||
<dbal default-connection="connection1"> | ||
<connection name="connection1" schema-filter="~^(?!t_)~" /> | ||
<connection name="connection2" /> | ||
<connection name="connection3" /> | ||
</dbal> | ||
</config> | ||
|
||
<srv:services> | ||
<srv:service id="well_known_filter" alias="doctrine.dbal.well_known_schema_asset_filter" public="true" /> | ||
<srv:service id="symfony.messenger" class="Symfony\Component\Messenger\Transport\Doctrine\Connection"> | ||
<srv:argument type="collection"> | ||
<srv:argument key="table_name">app_messages</srv:argument> | ||
</srv:argument> | ||
</srv:service> | ||
</srv:services> | ||
</srv:container> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
...njection/Fixtures/config/yml/well_known_schema_filter_default_tables_messenger_legacy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
doctrine: | ||
dbal: | ||
default_connection: connection1 | ||
connections: | ||
connection1: | ||
schema_filter: ~^(?!t_)~ | ||
connection2: [] | ||
connection3: [] | ||
|
||
services: | ||
well_known_filter: | ||
alias: 'doctrine.dbal.well_known_schema_asset_filter' | ||
public: true | ||
|
||
symfony.messenger: | ||
class: 'Symfony\Component\Messenger\Transport\Doctrine\Connection' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
...ction/Fixtures/config/yml/well_known_schema_filter_overridden_tables_messenger_legacy.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
doctrine: | ||
dbal: | ||
default_connection: connection1 | ||
connections: | ||
connection1: | ||
schema_filter: ~^(?!t_)~ | ||
connection2: [] | ||
connection3: [] | ||
|
||
services: | ||
well_known_filter: | ||
alias: 'doctrine.dbal.well_known_schema_asset_filter' | ||
public: true | ||
|
||
symfony.messenger: | ||
class: 'Symfony\Component\Messenger\Transport\Doctrine\Connection' | ||
arguments: | ||
- table_name: app_messages |