Skip to content

Commit

Permalink
feat: execute ffta sync each night, and send result by email
Browse files Browse the repository at this point in the history
  • Loading branch information
dehy committed Oct 3, 2024
1 parent 10056db commit 7a18c33
Show file tree
Hide file tree
Showing 28 changed files with 723 additions and 64 deletions.
5 changes: 4 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"doctrine/doctrine-bundle": "^2.5",
"doctrine/doctrine-migrations-bundle": "^3.2",
"doctrine/orm": "^2.11",
"dragonmantank/cron-expression": "^3.3",
"easycorp/easyadmin-bundle": "^4.1",
"fresh/doctrine-enum-bundle": "^9.0",
"gedmo/doctrine-extensions": "^3.9",
Expand All @@ -32,6 +33,7 @@
"knpuniversity/oauth2-client-bundle": "^2.10",
"league/flysystem-async-aws-s3": "^3.0",
"league/flysystem-bundle": "^3.0",
"league/flysystem-memory": "^3.29",
"moneyphp/money": "^4.0",
"nelmio/cors-bundle": "^2.2",
"phpdocumentor/reflection-docblock": "^5.3",
Expand Down Expand Up @@ -62,6 +64,7 @@
"symfony/proxy-manager-bridge": "6.4.*",
"symfony/runtime": "6.4.*",
"symfony/scaleway-mailer": "6.4.*",
"symfony/scheduler": "6.4.*",
"symfony/security-bundle": "6.4.*",
"symfony/serializer": "6.4.*",
"symfony/stimulus-bundle": "^2.11",
Expand Down Expand Up @@ -143,7 +146,7 @@
"require-dev": {
"dama/doctrine-test-bundle": "^7.1",
"doctrine/doctrine-fixtures-bundle": "^3.4",
"fakerphp/faker": "^1.20",
"fakerphp/faker": "^1.23",
"friendsofphp/php-cs-fixer": "^3.14",
"hautelook/alice-bundle": "^2.11",
"phpstan/phpstan": "^1.8",
Expand Down
208 changes: 196 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions config/packages/flysystem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,13 @@ flysystem:
client: 'scaleway_object_storage_client'
bucket: '%env(STORAGE_BUCKET_MYARCHERYCLUB)%'
prefix: 'events'

when@test:
flysystem:
storages:
clubs.logos.storage:
adapter: 'memory'
licensees.storage:
adapter: 'memory'
events.storage:
adapter: 'memory'
14 changes: 7 additions & 7 deletions config/packages/messenger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ framework:
# Route your messages to the transports
# 'App\Message\YourMessage': async

# when@test:
# framework:
# messenger:
# transports:
# # replace with your transport name here (e.g., my_transport: 'in-memory://')
# # For more Messenger testing tools, see https://github.com/zenstruck/messenger-test
# async: 'in-memory://'
when@test:
framework:
messenger:
transports:
# replace with your transport name here (e.g., my_transport: 'in-memory://')
# For more Messenger testing tools, see https://github.com/zenstruck/messenger-test
async: 'test://'
3 changes: 1 addition & 2 deletions config/packages/security.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@ security:
- { path: ^/, roles: ROLE_USER }

role_hierarchy:
ROLE_ADMIN: [ ROLE_COACH, ROLE_USER, ROLE_ALLOWED_TO_SWITCH ]
ROLE_COACH: ROLE_USER
ROLE_ADMIN: [ ROLE_ALLOWED_TO_SWITCH ]

when@test:
security:
Expand Down
10 changes: 8 additions & 2 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
version: '3'

services:
app:
volumes:
- .:/app
ports:
- "8080:80"

messenger-async:
volumes:
- .:/app

scheduler-ffta-licensees:
volumes:
- .:/app


###> doctrine/doctrine-bundle ###
Expand Down
22 changes: 20 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
version: '3'

services:
app:
build:
Expand All @@ -8,6 +6,26 @@ services:
environment:
- APP_ENV=dev

messenger-async:
build:
context: .
dockerfile: docker/Dockerfile
command: messenger-async
environment:
- APP_ENV=dev
depends_on:
- app

scheduler-ffta-licensees:
build:
context: .
dockerfile: docker/Dockerfile
command: scheduler-ffta_licensees
environment:
- APP_ENV=dev
depends_on:
- app

###> doctrine/doctrine-bundle ###
database:
image: mariadb:${MARIADB_VERSION:-10.11.5}
Expand Down
Loading

0 comments on commit 7a18c33

Please sign in to comment.