Skip to content

Commit 5a446d3

Browse files
committed
feat: add mongo support
1 parent 29528a4 commit 5a446d3

File tree

7 files changed

+269
-4
lines changed

7 files changed

+269
-4
lines changed

Diff for: .env

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ APP_SECRET=f8ecc29e45e767f99a7c9ec7ad3587de
1919
###< symfony/framework-bundle ###
2020

2121
###> doctrine/mongodb-odm-bundle ###
22-
MONGODB_URL=mongodb://localhost:27017
22+
MONGODB_URL=mongodb://mongo:27017
2323
MONGODB_DB=symfony
2424
###< doctrine/mongodb-odm-bundle ###

Diff for: composer.json

+3
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,8 @@
6666
"require": "5.4.*",
6767
"docker": true
6868
}
69+
},
70+
"require-dev": {
71+
"symfony/maker-bundle": "^1.36"
6972
}
7073
}

Diff for: composer.lock

+238-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: config/bundles.php

+1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
return [
44
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
55
Doctrine\Bundle\MongoDBBundle\DoctrineMongoDBBundle::class => ['all' => true],
6+
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
67
];

Diff for: config/services.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ services:
1919
resource: '../src/'
2020
exclude:
2121
- '../src/DependencyInjection/'
22-
- '../src/Entity/'
22+
- '../src/Document/'
2323
- '../src/Kernel.php'
2424
- '../src/Tests/'
2525

Diff for: docker-compose.yml

+10
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ services:
2525
MERCURE_PUBLIC_URL: https://${SERVER_NAME:-localhost}/.well-known/mercure
2626
MERCURE_JWT_SECRET: ${CADDY_MERCURE_JWT_SECRET:-!ChangeMe!}
2727

28+
mongo:
29+
container_name: mongo-data
30+
image: mongo:4.4.9
31+
restart: always
32+
ports:
33+
- ${PORT_MONGODB:-27017}:27017
34+
volumes:
35+
- mongodata:/data/db
36+
2837
caddy:
2938
build:
3039
context: .
@@ -62,5 +71,6 @@ volumes:
6271
php_socket:
6372
caddy_data:
6473
caddy_config:
74+
mongodata:
6575
###> symfony/mercure-bundle ###
6676
###< symfony/mercure-bundle ###

Diff for: symfony.lock

+15
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
"doctrine/event-manager": {
2424
"version": "1.1.1"
2525
},
26+
"doctrine/inflector": {
27+
"version": "2.0.4"
28+
},
2629
"doctrine/instantiator": {
2730
"version": "1.4.0"
2831
},
@@ -61,6 +64,9 @@
6164
"mongodb/mongodb": {
6265
"version": "1.11.0"
6366
},
67+
"nikic/php-parser": {
68+
"version": "v4.13.2"
69+
},
6470
"psr/cache": {
6571
"version": "2.0.0"
6672
},
@@ -158,6 +164,15 @@
158164
"symfony/http-kernel": {
159165
"version": "v5.4.2"
160166
},
167+
"symfony/maker-bundle": {
168+
"version": "1.36",
169+
"recipe": {
170+
"repo": "github.com/symfony/recipes",
171+
"branch": "master",
172+
"version": "1.0",
173+
"ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
174+
}
175+
},
161176
"symfony/options-resolver": {
162177
"version": "v5.4.0"
163178
},

0 commit comments

Comments
 (0)