Skip to content

Commit

Permalink
Add recipes for libs (#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
OskarStark authored Jan 11, 2025
1 parent 9de5de2 commit 28b6c04
Show file tree
Hide file tree
Showing 6 changed files with 47 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
services:
_defaults:
autowire: true

OskarStark\Doctrine\Type\Doctrine\DBAL\Types\Type\DateTimeMillisecondsType: null

doctrine:
dbal:
types:
# We want to store DateTime objects with milliseconds
# The solution is built on https://github.com/doctrine/dbal/issues/2873#issuecomment-701052412
# but instead of using microseconds we use milliseconds
datetime: OskarStark\Doctrine\Type\Doctrine\DBAL\Types\Type\DateTimeMillisecondsType
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
services:
_defaults:
autowire: true

OskarStark\Doctrine\Postgres\Platform\Doctrine\DBAL\Platforms\PostgreSQLMillisecondsPlatform: null

doctrine:
dbal:
# We want to store DateTime objects with milliseconds
# The solution is built on https://github.com/doctrine/dbal/issues/2873#issuecomment-701052412
# but instead of using microseconds we use milliseconds
platform_service: OskarStark\Doctrine\Postgres\Platform\Doctrine\DBAL\Platforms\PostgreSQLMillisecondsPlatform
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
services:
_defaults:
autowire: true

OskarStark\Doctrine\EventSubscriber\MigrationEventSubscriber:
tags:
- { name: doctrine.event_subscriber, connection: default }
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
}
}

0 comments on commit 28b6c04

Please sign in to comment.