Compare commits

...
Author SHA1 Message Date
julielenaertsandClaude Opus 5.5 78079ab6ae Update to v2.14.0
build-images / build-and-push (push) Successful in 2m48s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:45:53 +01:00
julielenaertsandClaude Opus 5.5 dbfaf26b53 Limit accompanying period referrers to 5
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:45:29 +01:00
julielenaertsandClaude Opus 5.5 cd03c9c45f Add default scopes on the creation of accompanying periods
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:38:57 +01:00
julielenaertsandClaude Opus 5.5 c299458724 Remove @symfony/ux-translator from package.json, provided by chill-bundles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:18:40 +01:00
julielenaertsandClaude Opus 5.5 56adf5bbf2 Version composer.lock again
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 16:13:00 +01:00
julielenaertsandClaude Opus 5.5 d8768eff3a Require symfony/doctrine-messenger, no longer provided by chill-bundles
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:42:55 +01:00
julielenaertsandClaude Opus 5.5 d6615d64b5 Remove phpunit-bridge variable from .env.test
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:33:47 +01:00
julielenaertsandClaude Opus 5.5 2e4abca455 Build images with PHP 8.5 and Vite
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:33:47 +01:00
julielenaertsandClaude Opus 5.5 3926b26ae7 Replace Webpack Encore by Vite
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:22:22 +01:00
julielenaertsandClaude Opus 5.5 69cd19b932 Update symfony recipe doctrine/doctrine-bundle
Keep doctrine.yaml and .env: Chill needs the default naming strategy and sequences.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:02:43 +01:00
julielenaertsandClaude Opus 5.5 c1927fc6a2 Update symfony recipe symfony/framework-bundle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:02:21 +01:00
julielenaertsandClaude Opus 5.5 6f0dff8231 Update symfony recipe symfony/twig-bundle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:02:02 +01:00
julielenaertsandClaude Opus 5.5 b5059acb12 Update symfony recipe symfony/security-bundle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:01:46 +01:00
julielenaertsandClaude Opus 5.5 15bda87858 Update symfony recipe symfony/messenger
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:01:30 +01:00
julielenaertsandClaude Opus 5.5 e147c40e65 Update symfony recipe symfony/ovh-cloud-notifier
Default OVHCLOUD_DSN to null://null, overridden by the environment.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:01:16 +01:00
julielenaertsandClaude Opus 5.5 616252801c Update symfony recipe symfony/notifier
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:00:35 +01:00
julielenaertsandClaude Opus 5.5 eed868cd5e Update symfony recipe symfony/mailer
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:00:28 +01:00
julielenaertsandClaude Opus 5.5 353653758d Update symfony recipe symfony/routing
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:00:21 +01:00
julielenaertsandClaude Opus 5.5 6595a16a1a Update symfony recipe symfony/monolog-bundle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 15:00:02 +01:00
julielenaertsandClaude Opus 5.5 c3bbd8540f Update symfony recipe symfony/web-profiler-bundle
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:59:54 +01:00
julielenaertsandClaude Opus 5.5 55109db307 Update symfony recipe symfony/translation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:59:44 +01:00
julielenaertsandClaude Opus 5.5 8d255121f8 Update symfony recipe symfony/ux-translator
Dump the translations into var/translations, as required by the Vite preset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:59:29 +01:00
julielenaertsandClaude Opus 5.5 4a46d884ad Update symfony recipe doctrine/deprecations
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:59:15 +01:00
julielenaertsandClaude Opus 5.5 0125ff7087 Use translation keys for workflow labels
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:54:00 +01:00
julielenaertsandClaude Opus 5.5 54e6068af8 Adapt doctrine config to DoctrineBundle 3 and add Redis env defaults
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:39:11 +01:00
julielenaertsandClaude Opus 5.5 2a0f079597 Migrate security and routing config to Symfony 6
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:39:11 +01:00
julielenaertsandClaude Opus 5.5 9e5c70af3f Remove deprecated budget and calendar config
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 14:39:11 +01:00
julielenaertsandClaude Opus 5.5 d2c436c2f1 Upgrade to chill-bundles v6.0.6 and Symfony 6.4
- require PHP ^8.5 (required by chill-bundles v6)
- move the Symfony packages to 6.4.* and set extra.symfony.require
- remove hslavich/oneloginsaml-bundle: no Symfony 6 compatible release,
  and not configured in this instance
- bump champs-libres/orange-contact-everyone-notifier to ^1.1 (Symfony 6)
- bump the dev tools (phpstan 2, rector 2, phpunit 10, fixtures 4) and
  remove symfony/phpunit-bridge
- Flex removed WebpackEncoreBundle, SensioFrameworkExtraBundle and their
  config, webpack.config.js and the Encore starter assets
- register PentatrionViteBundle by hand: its recipe lives in
  recipes-contrib and is ignored by Flex
- keep /node_modules/ and /public/build/ ignored: Flex removed them with
  the Encore block of .gitignore

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:56:51 +01:00
julielenaertsandClaude Opus 5.5 28ae989da7 Configure accompanying period fields as required
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-23 12:55:03 +01:00
julielenaerts f1878e72e0 Update to v2.13.6
build-images / build-and-push (push) Successful in 3m39s
2026-10-26 11:03:58 +01:00
julielenaerts 0e6ec94ae4 Run container as unprivileged www-data user and simplify entrypoint
- Remove root-only FPM user configuration from entrypoint.sh (moved to Dockerfile build time)
- Remove Redis session configuration from entrypoint.sh (handled by Symfony services)
- Remove cache directory permission adjustments (unnecessary with proper ownership)
- Set file ownership to www-data:www-data at build time using COPY --chown
- Create required directories and set ownership in single RUN layer
- Switch to www-data USER before CMD
- Remove PHP_FPM_USER, PHP_FPM_GROUP, SESSION_LIFETIME environment variables
- Add docker/ directory to .dockerignore
2026-10-26 11:02:05 +01:00
julielenaerts b1eb46f902 Update to v2.13.5
build-images / build-and-push (push) Successful in 4m32s
2026-10-21 20:37:32 +02:00
julielenaerts 154d953ec5 Merge branch 'main' of gitea.champs-libres.be:Chill-project/chill-base-app-v3
build-images / build-and-push (push) Successful in 3m51s
2026-10-21 17:19:20 +02:00
julielenaerts 36481c3296 Use simplified version of Dockerfile 2026-10-21 17:13:07 +02:00
damercier 65d4dfbc46 Update renovate.json 2026-10-19 08:29:07 +00:00
damercier 1b8bbe6b29 Merge pull request 'Configure Renovate' (#2) from renovate/configure into main
Reviewed-on: #2
2026-10-06 18:57:44 +00:00
renovate-bot ef0e2276ed Add renovate.json 2026-10-06 02:01:47 +00:00
julielenaerts aecf9fe674 Update to v2.13.4
build-images / build-and-push (push) Successful in 26m45s
2026-09-17 18:02:31 +02:00
julielenaerts d5a36d9ffe Update to v2.13.3
build-images / build-and-push (push) Successful in 8m14s
2026-09-17 17:20:35 +02:00
julielenaerts d538bf0410 Update php version in Dockerfile
build-images / build-and-push (push) Successful in 11m52s
2026-09-17 17:08:38 +02:00
julielenaerts f423b6461f Update to v2.13.2
build-images / build-and-push (push) Successful in 11m58s
2026-09-17 16:43:12 +02:00
julielenaerts b6dfd83e82 DX: fix permission issues for the cache directory within Dockerfile
Delete drone.yml file
2026-09-17 16:41:40 +02:00
julielenaerts 8cbf1764f9 Merge branch 'main' of gitea.champs-libres.be:Chill-project/chill-base-app-v3
continuous-integration/drone/tag Build was killed
build-images / build-and-push (push) Successful in 10m18s
2026-09-17 16:16:02 +02:00
julielenaerts 9977d76669 DX: build-image.yaml with gitea actions 2026-09-17 16:15:50 +02:00
LenaertsJ 79b3b0fa18 Update .changes/v2.13.1 2026-09-17 14:14:38 +00:00
julielenaerts 6d5de21bef Upgrade to v2.13.1 2026-09-17 16:11:58 +02:00
julielenaerts 3bea6183af fix: ensure cache directory exists in the image 2026-09-17 16:10:55 +02:00
julielenaerts a2738a2f7c Update drone file to use node 24
continuous-integration/drone/tag Build is passing
2026-07-10 13:59:05 +02:00
julielenaerts e29c743985 remove composer and yarn lock files
continuous-integration/drone/tag Build is failing
2026-07-10 13:51:59 +02:00
julielenaerts 46ae716aa0 Update dockerfile to use postgresql 16
continuous-integration/drone/tag Build is failing
2026-07-10 13:27:32 +02:00
julielenaerts 9a401d740a Update chill base to v2.13.0 with bundles v5.1.3
continuous-integration/drone/tag Build is failing
2026-07-10 12:09:07 +02:00
julielenaerts 136dba5257 Add security config user-checker and change config webpack.config.js 2026-07-10 12:07:24 +02:00
julielenaerts 8815d735e0 Add TicketBundle 2026-07-10 12:06:51 +02:00
julielenaerts 2fee2cb945 Update chill base to v2.12.0 with chill bundles v4.7.0
continuous-integration/drone/tag Build is passing
2025-11-10 17:28:41 +01:00
julielenaerts aada303a9e Add phpstan file 2025-11-10 15:28:29 +01:00
julielenaerts 3e32add187 Update chill bundles 2025-11-10 15:27:56 +01:00
julielenaerts 325a2f4071 Update Chill to v2.11.0 with Chill bundles v4.0.2
continuous-integration/drone/tag Build is passing
2025-07-10 12:28:05 +02:00
julielenaerts bec75c57ab update chill bundles to v3.11.0
continuous-integration/drone/tag Build is passing
2025-05-13 09:51:02 +02:00
julielenaerts ebfc419985 Remove config for short messages 2025-05-13 09:46:56 +02:00
julielenaerts cae1dd4abb Place translations in var of bundles
continuous-integration/drone/tag Build is passing
2025-03-19 09:34:58 +01:00
julielenaerts 3359cd1c1a Update composer files
continuous-integration/drone/tag Build is failing
2025-03-18 14:44:50 +01:00
julielenaerts 27934cba56 Put ux-translator line back in package.json at root
continuous-integration/drone/tag Build is failing
2025-03-18 14:33:11 +01:00
julielenaerts 71340c03a1 Fix translation config
continuous-integration/drone/tag Build is failing
2025-03-18 14:09:54 +01:00
70 changed files with 18824 additions and 12095 deletions

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
## 2.10.0 - 2025-05-13
### Release
* Update chill bundles to 3.11.0
+3
View File
@@ -0,0 +1,3 @@
## 2.11.0 - 2025-07-10
### Release
* Update chill bundles to v4.0.2
+3
View File
@@ -0,0 +1,3 @@
## 2.12.0 - 2025-11-10
### Release
* Update chill bundles to v4.7.0
+3
View File
@@ -0,0 +1,3 @@
## 2.13.0 - 2026-07-10
### Release
* Release chill with bundles version 5.1.3
+5
View File
@@ -0,0 +1,5 @@
## 2.13.1 - 2026-09-17
### Fixed
* Dockerfile: create cache directory for helm deployment
### DX
* Build image with gitea actions
+3
View File
@@ -0,0 +1,3 @@
## 2.13.2 - 2026-09-17
### DX
* Fix permissions for writing to cache directory during helm deployment
+3
View File
@@ -0,0 +1,3 @@
## 2.13.3 - 2026-09-17
### DX
* Upgrade to php version 8.4 in Dockerfile
+3
View File
@@ -0,0 +1,3 @@
## 2.13.4 - 2026-09-17
### DX
* Fix Dockerfile permissions to be able to write to the whole /var/www/app/ directory
+3
View File
@@ -0,0 +1,3 @@
## 2.13.5 - 2026-10-21
### Security
* Update with patch for php vulnerability
+3
View File
@@ -0,0 +1,3 @@
## 2.13.6 - 2026-10-26
### DX
* Run container as www-data user instead of root
+8
View File
@@ -0,0 +1,8 @@
## 2.14.0 - 2026-11-23
### Release
* Release chill with bundles version 6.0.6 (Symfony 6.4, Vite instead of Webpack Encore, PHP 8.5)
### Feature
* Pre-select the user's service (default scopes) when creating an accompanying period
* Make the main fields of the accompanying period required, and limit the referrers to 5
### DX
* Build the images with PHP 8.5 and Vite, and version composer.lock and package-lock.json
+3
View File
@@ -0,0 +1,3 @@
## 2.9.0 - 2025-03-18
### Release
* Update chill bundles to v3.10.3
-87
View File
@@ -1,87 +0,0 @@
---
kind: pipeline
type: docker
name: build-images
image_pull_secrets:
- dockerconfig
trigger:
event:
- tag
steps:
- name: build-base-image
image: plugins/docker
settings:
username:
from_secret: docker_username
password:
from_secret: docker_password
registry: h3m6q87t.gra7.container-registry.ovh.net
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base
tag: latest
target: chill_base_php82
pull_image: true
cache_from:
- h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
- chill/base-image:latest
- name: composer-install
image: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
pull: always
commands:
- composer install --no-scripts --no-interaction
- bin/console cache:clear
depends_on:
- build-base-image
- name: build-assets
image: node:20
pull: always
commands:
- yarn install
- yarn list
- yarn run encore production
depends_on:
- composer-install
- name: build-image-php
image: plugins/docker
settings:
pull_image: true
username:
from_secret: docker_username
password:
from_secret: docker_password
registry: h3m6q87t.gra7.container-registry.ovh.net
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php
tag:
- ${DRONE_TAG}
cache_from:
- h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php-base:latest
- chill/base-image:latest
depends_on:
- build-assets
- composer-install
- name: build-image-nginx
image: plugins/docker
settings:
pull_image: true
username:
from_secret: docker_username
password:
from_secret: docker_password
registry: h3m6q87t.gra7.container-registry.ovh.net
repo: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/nginx
tag:
- ${DRONE_TAG}
Dockerfile: docker/nginx/Dockerfile
depends_on:
- build-assets
---
kind: signature
hmac: 510f151634e776218c6135bb830480fe0c265eb1dd96c16ef640001a23f351ae
...
+5
View File
@@ -77,8 +77,13 @@ ADD_ADDRESS_MAP_CENTER_Z=14
RELATORIO_HOST= RELATORIO_HOST=
RELATORIO_PORT= RELATORIO_PORT=
WOPI_SERVER=http://${COLLABORA_HOST}:${COLLABORA_PORT} WOPI_SERVER=http://${COLLABORA_HOST}:${COLLABORA_PORT}
## Redis Cache & redis database
REDIS_HOST=redis
REDIS_PORT=6379
REDIS_URL=redis://${REDIS_HOST}:${REDIS_PORT}
###< chill-project/chill-bundles ### ###< chill-project/chill-bundles ###
###> symfony/ovh-cloud-notifier ### ###> symfony/ovh-cloud-notifier ###
# OVHCLOUD_DSN=ovhcloud://APPLICATION_KEY:APPLICATION_SECRET@default?consumer_key=CONSUMER_KEY&service_name=SERVICE_NAME # OVHCLOUD_DSN=ovhcloud://APPLICATION_KEY:APPLICATION_SECRET@default?consumer_key=CONSUMER_KEY&service_name=SERVICE_NAME
OVHCLOUD_DSN=null://null
###< symfony/ovh-cloud-notifier ### ###< symfony/ovh-cloud-notifier ###
View File
Whitespace-only changes.
+3
View File
@@ -0,0 +1,3 @@
# define your env variables for the test env here
KERNEL_CLASS='App\Kernel'
APP_SECRET='$ecretf0rt3st'
+47
View File
@@ -0,0 +1,47 @@
name: build-images
on:
push:
tags:
- 'v*'
jobs:
build-and-push:
runs-on: cth-ubuntu-latest
steps:
- name: Checkout
uses: https://github.com/actions/checkout@v4
- name: Log in to Docker Registry
uses: https://github.com/docker/login-action@v3
with:
registry: h3m6q87t.gra7.container-registry.ovh.net
username: ${{ vars.OVH_REGISTRY_USERNAME }}
password: ${{ secrets.OVH_REGISTRY_PASSWORD }}
- name: Install Dependencies and Build Assets
uses: docker://chill/base-image:8.5-edge
env:
APP_ENV: prod
with:
entrypoint: /bin/sh
# We install node/npm inside the PHP container: the Vite build needs the translations dumped by cache:warmup
args: -c "apk add --no-cache nodejs npm && composer install --no-scripts --no-interaction && bin/console cache:warmup && npm ci && npm run build"
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
- name: Build and Push PHP Image
uses: https://github.com/docker/build-push-action@v5
with:
context: .
file: Dockerfile
push: true
tags: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/php:${{ github.ref_name }}
- name: Build and Push Nginx Image
uses: https://github.com/docker/build-push-action@v5
with:
context: .
file: docker/nginx/Dockerfile
push: true
tags: h3m6q87t.gra7.container-registry.ovh.net/chillbasics/nginx:${{ github.ref_name }}
@@ -19,7 +19,7 @@ jobs:
with: with:
cmd: 'cat composer.lock | jq --raw-output ''.packages[] | select ( .name | contains ("chill-project/chill-bundles")) | .version''' cmd: 'cat composer.lock | jq --raw-output ''.packages[] | select ( .name | contains ("chill-project/chill-bundles")) | .version'''
- name: run composer update to update composer.lock - name: run composer update to update composer.lock
uses: docker://gitea.champs-libres.be/chill-project/chill-skeleton-basic/base-image:latest uses: docker://chill/base-image:8.5-edge
with: with:
# this is where we set the command to execute # this is where we set the command to execute
args: composer update --no-install args: composer update --no-install
+13 -4
View File
@@ -1,4 +1,4 @@
docker/
###> symfony/framework-bundle ### ###> symfony/framework-bundle ###
/.env.local /.env.local
/.env.local.php /.env.local.php
@@ -9,13 +9,22 @@
/vendor/ /vendor/
###< symfony/framework-bundle ### ###< symfony/framework-bundle ###
###> symfony/webpack-encore-bundle ### ###> node / vite build ###
/node_modules/ /node_modules/
/public/build/ /public/build/
npm-debug.log npm-debug.log
yarn-error.log /yarn.lock
###< symfony/webpack-encore-bundle ### ###< node / vite build ###
###> lexik/jwt-authentication-bundle ### ###> lexik/jwt-authentication-bundle ###
/config/jwt/*.pem /config/jwt/*.pem
###< lexik/jwt-authentication-bundle ### ###< lexik/jwt-authentication-bundle ###
###> phpstan/phpstan ###
phpstan.neon
###< phpstan/phpstan ###
###> phpunit/phpunit ###
/phpunit.xml
/.phpunit.cache/
###< phpunit/phpunit ###
+1 -1
View File
@@ -1 +1 @@
20 24
+55
View File
@@ -6,6 +6,61 @@ adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html),
and is generated by [Changie](https://github.com/miniscruff/changie). and is generated by [Changie](https://github.com/miniscruff/changie).
## 2.14.0 - 2026-11-23
### Release
* Release chill with bundles version 6.0.6 (Symfony 6.4, Vite instead of Webpack Encore, PHP 8.5)
### Feature
* Pre-select the user's service (default scopes) when creating an accompanying period
* Make the main fields of the accompanying period required, and limit the referrers to 5
### DX
* Build the images with PHP 8.5 and Vite, and version composer.lock and package-lock.json
## 2.13.6 - 2026-10-26
### DX
* Run container as www-data user instead of root
## 2.13.5 - 2026-10-21
### Security
* Update with patch for php vulnerability
## 2.13.4 - 2026-09-17
### DX
* Fix Dockerfile permissions to be able to write to the whole /var/www/app/ directory
## 2.13.3 - 2026-09-17
### DX
* Upgrade to php version 8.4 in Dockerfile
## 2.13.2 - 2026-09-17
### DX
* Fix permissions for writing to cache directory during helm deployment
## 2.13.1 - 2026-09-17
### Fixed
* Dockerfile: create cache directory for helm deployment
### DX
* Build image with gitea actions
## 2.13.0 - 2026-07-10
### Release
* Release chill with bundles version 5.1.3
## 2.12.0 - 2025-11-10
### Release
* Update chill bundles to v4.7.0
## 2.11.0 - 2025-07-10
### Release
* Update chill bundles to v4.0.2
## 2.10.0 - 2025-05-13
### Release
* Update chill bundles to 3.11.0
## 2.9.0 - 2025-03-18
### Release
* Update chill bundles to v3.10.3
## 2.8.0 - 2025-03-04 ## 2.8.0 - 2025-03-04
### Release ### Release
* Update chill bundles to v3.9.2 * Update chill bundles to v3.9.2
+25 -96
View File
@@ -1,106 +1,35 @@
FROM php:8.3-fpm-alpine AS chill_base_php82 FROM chill/base-image:8.5-edge
ENV POSTGRES_VERSION=15 # copy directories with ownership for the unprivileged runtime user
COPY --chown=www-data:www-data ./bin /var/www/app/bin/.
COPY --chown=www-data:www-data ./composer.* /var/www/app/
COPY --chown=www-data:www-data ./config /var/www/app/config/.
COPY --chown=www-data:www-data ./migrations /var/www/app/migrations/.
COPY --chown=www-data:www-data ./public /var/www/app/public/.
COPY --chown=www-data:www-data ./src /var/www/app/src/.
COPY --chown=www-data:www-data ./templates /var/www/app/templates/.
COPY --chown=www-data:www-data ./translations /var/www/app/translations/.
COPY --chown=www-data:www-data ./vendor /var/www/app/vendor/.
# default UID for the PHP user COPY --chown=www-data:www-data ./.env /var/www/app/.env
ARG UID=1000
ARG GID=1000
# install php extensions and deps COPY ./entrypoint.sh /entrypoint.sh
# apk add --no-cache --update --virtual rabbitmq-c-dev rabbitmq-c-utils gcc g++ make autoconf && pecl install amqp
RUN apk update && apk add --no-cache \
wget gnupg \
libpq-dev \
icu-dev icu-libs icu-data-full \
oniguruma-dev \
libzip libzip-dev \
linux-headers \
gcc g++ make autoconf \
bash git \
rabbitmq-c rabbitmq-c-dev \
&& docker-php-ext-install pdo_pgsql intl mbstring zip bcmath exif sockets \
&& git clone https://github.com/nikic/php-ast.git \
&& cd php-ast \
&& phpize \
&& ./configure \
&& make install \
&& echo 'extension=ast.so' > /usr/local/etc/php/php.ini \
&& cd .. && rm -rf php-ast \
&& pecl install redis \
&& docker-php-ext-enable redis \
&& pecl install amqp \
&& docker-php-ext-enable amqp \
&& apk add libpng-dev libjpeg-turbo-dev freetype-dev \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install -j$(nproc) gd \
&& apk add postgresql${POSTGRES_VERSION}-client \
&& apk del --purge wget gnupg libpq-dev icu-dev oniguruma-dev libzip-dev linux-headers gcc g++ make autoconf
RUN { \ # - mark entrypoint executable
echo ""; \ # - declare the FPM pool user/group at build time (was previously written by entrypoint.sh as root)
echo "memory_limit = 512M"; \ # - prepare writable Symfony var/ and COMPOSER_HOME directories for the unprivileged runtime user
echo ""; \ RUN chmod +x /entrypoint.sh \
} >> /usr/local/etc/php/conf.d/memory_limit.ini && printf '[www]\nuser=www-data\ngroup=www-data\n' > /usr/local/etc/php-fpm.d/zz-user.conf \
&& mkdir -p /var/www/app/var/cache /var/www/app/var/log /var/www/app/.composer \
&& chown -R www-data:www-data /var/www/app/var /var/www/app/.composer \
&& chown www-data:www-data /var/www/app
# php-fpm listens on 9000 by default (unprivileged port)
EXPOSE 9000
RUN { \ USER www-data
echo ""; \
echo "[Date]"; \
echo "date.timezone = Europe/Brussels"; \
echo ""; \
} >> /usr/local/etc/php/conf.d/date.ini
# temporary fix, while php-cs-fixer has conflict dependencies
# with chill
RUN curl -o /usr/local/bin/php-cs-fixer https://cs.symfony.com/download/php-cs-fixer-v3.phar \
&& chmod +x /usr/local/bin/php-cs-fixer
# to make php-cs-fixer works with php 8.2
ENV PHP_CS_FIXER_IGNORE_ENV=1
COPY --from=composer:2 /usr/bin/composer /usr/bin/composer
ENV COMPOSER_ALLOW_SUPERUSER=1
ENV COMPOSER_MEMORY_LIMIT=-1
# shell bash preference
RUN sed -i " \
s|root:x:0:0:root:/root:/bin/ash|root:x:0:0:root:/root:/bin/bash|g; \
s|postgres:x:70:70:PostgreSQL user:/var/lib/postgresql:/bin/sh|postgres:x:70:70:PostgreSQL user:/var/lib/postgresql:/bin/bash|g" \
/etc/passwd
# chmod on redis.so
RUN chmod 755 -R /usr/local/lib/php/extensions/
WORKDIR /var/www/app
CMD ["php-fpm"]
FROM chill_base_php82 AS chill_php82
# copy directories
COPY ./bin /var/www/app/bin/.
COPY ./composer.* /var/www/app/
COPY ./config /var/www/app/config/.
COPY ./migrations /var/www/app/migrations/.
COPY ./public /var/www/app/public/.
COPY ./src /var/www/app/src/.
COPY ./templates /var/www/app/templates/.
COPY ./translations /var/www/app/translations/.
COPY ./vendor /var/www/app/vendor/.
COPY ./.env /var/www/app/.env
# import the manifest.json file
COPY ./public/build/manifest.json /var/www/app/public/build/manifest.json
ADD ./entrypoint.sh /.
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"] ENTRYPOINT ["/entrypoint.sh"]
ENV PHP_FPM_USER=www-data \ ENV COMPOSER_HOME=/var/www/app/.composer
PHP_FPM_GROUP=www-data \
COMPOSER_HOME=/var/www/app/.composer \
SESSION_LIFETIME=10800
CMD [ "php-fpm" ] CMD [ "php-fpm" ]
-12
View File
@@ -1,12 +0,0 @@
/*
* Welcome to your app's main JavaScript file!
*
* We recommend including the built version of this JavaScript file
* (and its CSS file) in your base layout (base.html.twig).
*/
// any CSS you import will output into a single css file (app.css in this case)
import './styles/app.css';
// start the Stimulus application
import './bootstrap';
-11
View File
@@ -1,11 +0,0 @@
import { startStimulusApp } from '@symfony/stimulus-bridge';
// Registers Stimulus controllers from controllers.json and in the controllers/ directory
export const app = startStimulusApp(require.context(
'@symfony/stimulus-bridge/lazy-controller-loader!./controllers',
true,
/\.[jt]sx?$/
));
// register any custom, 3rd party controllers here
// app.register('some_controller_name', SomeImportedController);
-4
View File
@@ -1,4 +0,0 @@
{
"controllers": [],
"entrypoints": []
}
-16
View File
@@ -1,16 +0,0 @@
import { Controller } from '@hotwired/stimulus';
/*
* This is an example Stimulus controller!
*
* Any element with a data-controller="hello" attribute will cause
* this controller to be executed. The name "hello" comes from the filename:
* hello_controller.js -> "hello"
*
* Delete this file or adapt it for your use!
*/
export default class extends Controller {
connect() {
this.element.textContent = 'Hello Stimulus! Edit me in assets/controllers/hello_controller.js';
}
}
-3
View File
@@ -1,3 +0,0 @@
body {
background-color: lightgray;
}
-7
View File
@@ -1,7 +0,0 @@
import SwaggerUI from 'swagger-ui';
import 'swagger-ui/dist/swagger-ui.css';
SwaggerUI({
url: '/_dev/specs.yaml',
dom_id: '#swag'
})
+56 -52
View File
@@ -1,38 +1,8 @@
{ {
"name": "chill-project/app",
"license": "AGPL-3.0",
"type": "project", "type": "project",
"license": "proprietary", "description": "The Chill distribution",
"minimum-stability": "stable",
"prefer-stable": true,
"require": {
"php": ">=8.2.0",
"ext-ctype": "*",
"ext-iconv": "*",
"champs-libres/wopi-bundle": "dev-master@dev",
"champs-libres/wopi-lib": "dev-master@dev",
"chill-project/chill-bundles": "3.9.2",
"chill-project/chill-deploy": "^1.0",
"graylog2/gelf-php": "^2.0",
"symfony/console": "5.4.*",
"symfony/dotenv": "5.4.*",
"symfony/flex": "^1.17|^2",
"symfony/framework-bundle": "5.4.*",
"symfony/runtime": "5.4.*",
"symfony/yaml": "5.4.*"
},
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true,
"php-http/discovery": true,
"symfony/flex": true,
"symfony/runtime": true
},
"optimize-autoloader": true,
"preferred-install": {
"chill-project/chill-bundles": "source",
"*": "dist"
},
"sort-packages": true
},
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"App\\": "src/" "App\\": "src/"
@@ -43,11 +13,43 @@
"App\\Tests\\": "tests/" "App\\Tests\\": "tests/"
} }
}, },
"replace": { "require": {
"symfony/polyfill-ctype": "*", "php": "^8.5",
"symfony/polyfill-iconv": "*", "ext-redis": "*",
"symfony/polyfill-php72": "*" "chill-project/chill-bundles": "v6.0.6",
"symfony/runtime": "^6.4",
"symfony/console": "6.4.*",
"symfony/dotenv": "6.4.*",
"symfony/flex": "^2.4",
"symfony/framework-bundle": "6.4.*",
"symfony/yaml": "6.4.*",
"symfony/amqp-messenger": "6.4.*",
"graylog2/gelf-php": "^2.0",
"champs-libres/orange-contact-everyone-notifier": "^1.1",
"symfony/doctrine-messenger": "6.4.*"
}, },
"require-dev": {
"fakerphp/faker": "^1.13",
"nelmio/alice": "^3.8",
"phpunit/phpunit": "^10.5.24",
"symfony/maker-bundle": "^1.20",
"doctrine/doctrine-fixtures-bundle": "^4.3.1",
"symfony/web-profiler-bundle": "6.4.*",
"symfony/var-dumper": "6.4.*",
"phpspec/prophecy-phpunit": "^2.0",
"phpstan/phpstan": "^2.2.5",
"phpstan/phpstan-deprecation-rules": "^2.0.4",
"phpstan/extension-installer": "^1.2",
"phpstan/phpstan-strict-rules": "^2.0.11",
"rector/rector": "^2.6.5",
"phpstan/phpstan-doctrine": "^2.0",
"phpstan/phpstan-symfony": "^2.0",
"phpstan/phpstan-phpunit": "^2.0",
"jangregor/phpstan-prophecy": "^2.1.1",
"symfony/debug-bundle": "6.4.*"
},
"minimum-stability": "dev",
"prefer-stable": true,
"scripts": { "scripts": {
"auto-scripts": { "auto-scripts": {
"cache:clear": "symfony-cmd", "cache:clear": "symfony-cmd",
@@ -55,26 +57,28 @@
}, },
"post-install-cmd": [ "post-install-cmd": [
"@auto-scripts" "@auto-scripts"
],
"post-update-cmd": [
"@auto-scripts"
] ]
}, },
"conflict": { "config": {
"symfony/symfony": "*" "bin-dir": "bin",
"allow-plugins": {
"ocramius/package-versions": true,
"symfony/flex": true,
"phpstan/extension-installer": true,
"symfony/runtime": true
},
"preferred-install": {
"chill-project/chill-bundles": "source",
"champs-libres/async-uploader-bundle": "source"
}
}, },
"extra": { "extra": {
"symfony": { "symfony": {
"allow-contrib": false, "require": "6.4.*",
"require": "5.4.*", "endpoint": [
"endpoint": ["flex://defaults", "https://gitlab.com/api/v4/projects/57371968/repository/files/index.json/raw?ref=main"], "flex://defaults",
"docker": true "https://gitlab.com/api/v4/projects/57371968/repository/files/index.json/raw?ref=main"
]
} }
},
"require-dev": {
"doctrine/doctrine-fixtures-bundle": "^3.6",
"nelmio/alice": "^3.12",
"symfony/debug-bundle": "5.4.*",
"symfony/web-profiler-bundle": "5.4.*"
} }
} }
Generated
+5889 -3617
View File
File diff suppressed because it is too large. Load diff
+2 -2
View File
@@ -4,10 +4,9 @@ return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true], Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true], Twig\Extra\TwigExtraBundle\TwigExtraBundle::class => ['all' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true], Pentatrion\ViteBundle\PentatrionViteBundle::class => ['all' => true],
Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true], Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true], Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true],
Misd\PhoneNumberBundle\MisdPhoneNumberBundle::class => ['all' => true], Misd\PhoneNumberBundle\MisdPhoneNumberBundle::class => ['all' => true],
Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true], Lexik\Bundle\JWTAuthenticationBundle\LexikJWTAuthenticationBundle::class => ['all' => true],
KnpU\OAuth2ClientBundle\KnpUOAuth2ClientBundle::class => ['all' => true], KnpU\OAuth2ClientBundle\KnpUOAuth2ClientBundle::class => ['all' => true],
@@ -30,6 +29,7 @@ return [
Chill\BudgetBundle\ChillBudgetBundle::class => ['all' => true], Chill\BudgetBundle\ChillBudgetBundle::class => ['all' => true],
Chill\WopiBundle\ChillWopiBundle::class => ['all' => true], Chill\WopiBundle\ChillWopiBundle::class => ['all' => true],
Chill\EventBundle\ChillEventBundle::class => ['all' => true], Chill\EventBundle\ChillEventBundle::class => ['all' => true],
Chill\TicketBundle\ChillTicketBundle::class => ['all' => true],
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true], Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle::class => ['dev' => true, 'test' => true], Nelmio\Alice\Bridge\Symfony\NelmioAliceBundle::class => ['dev' => true, 'test' => true],
Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true], Symfony\Bundle\DebugBundle\DebugBundle::class => ['dev' => true],
+11 -3
View File
@@ -12,8 +12,6 @@ chill_main:
twilio_sid: '%env(resolve:TWILIO_SID)%' twilio_sid: '%env(resolve:TWILIO_SID)%'
twilio_secret: '%env(resolve:TWILIO_SECRET)%' twilio_secret: '%env(resolve:TWILIO_SECRET)%'
default_carrier_code: '%env(resolve:DEFAULT_CARRIER_CODE)%' default_carrier_code: '%env(resolve:DEFAULT_CARRIER_CODE)%'
short_messages:
dsn: '%env(string:SHORT_MESSAGE_DSN)%'
acl: acl:
form_show_scopes: true form_show_scopes: true
form_show_centers: true form_show_centers: true
@@ -40,9 +38,19 @@ chill_person:
create_person_allowed: false create_person_allowed: false
create_parcours_allowed: false create_parcours_allowed: false
allow_multiple_simultaneous_accompanying_periods: true allow_multiple_simultaneous_accompanying_periods: true
accompanying_period:
max_referrers: 5
accompanying_periods_fields: accompanying_periods_fields:
user: visible user: visible
# createdBy, step, origin, intensity, scopes, requestor, anonymous, emergency, confidential : visible(default) | hidden location: required
origin: required
intensity: required
scopes: required
anonymous: required
emergency: required
confidential: required
job: required
comment: visible
person_fields: person_fields:
acceptEmail: hidden acceptEmail: hidden
alt_names: alt_names:
-85
View File
@@ -1,85 +0,0 @@
chill_budget:
resources:
- { key: fixed_contract, labels: [{ lang: fr, label: "Salarié en CDI" }]}
- { key: temporary_contract, labels: [{ lang: fr, label: "Salarié en CDD"}]}
- { key: interim, labels: [{ lang: fr, label: "Salarié en intérim"}]}
- { key: other_revenues, labels: [{ lang: fr, label: "Revenus non salariés, commerçant, artisan,..."}]}
- { key: agricultural_activity, labels: [{ lang: fr, label: "Exploitant agricole"}]}
- { key: chomage_ass, labels: [{ lang: fr, label: "Allocations chômage ASS"}]}
- { key: chomage_are, labels: [{ lang: fr, label: "Allocations chômage ARE"}]}
- { key: remuneration_stage, labels: [{ lang: fr, label: "Rémunération de stage, d’apprentissage,..."}]}
- { key: daily_allowences, labels: [{ lang: fr, label: "Indemnités journalières"}]}
- { key: others, labels: [{ lang: fr, label: "Autres"}]}
- { key: pension, labels: [{ lang: fr, label: "Pension de retraite"}]}
- { key: invalidity, labels: [{ lang: fr, label: "Pension d'invalidité"}]}
- { key: reversion, labels: [{ lang: fr, label: "Pension de réversion"}]}
- { key: widowhood, labels: [{ lang: fr, label: "Pension de veuvage"}]}
- { key: military, labels: [{ lang: fr, label: "Pension militaire"}]}
- { key: food, labels: [{ lang: fr, label: "Pension alimentaire"}]}
- { key: compensation, labels: [{ lang: fr, label: "Pension de prestation compensatoire"}]}
- { key: allocation_handicap_adult, labels: [{ lang: fr, label: "Allocation aux adultes handicapés"}]}
- { key: rsa, labels: [{ lang: fr, label: "RSA"}]}
- { key: annuity_accident, labels: [{ lang: fr, label: "Rente accident"}]}
- { key: premium_al_pl, labels: [{ lang: fr, label: "Prime d’activité AL/APL au bénéficiaire"}]}
- { key: premium_thirdparty, labels: [{ lang: fr, label: "Prime d’activité versé au tiers"}]}
- { key: other_income, labels: [{ lang: fr, label: "Autres ressources (ARS, ...)"}]}
- { key: allocation_family, labels: [{ lang: fr, label: "Allocations familiales"}]}
- { key: allocation_basic, labels: [{ lang: fr, label: "Allocation de base"}]}
- { key: free_choice_saving, labels: [{ lang: fr, label: "Complément de libre choix du mode de garde"}]}
- { key: shared_benefits_child, labels: [{ lang: fr, label: "Prestation partagée éducation de l’enfant"}]}
- { key: complimentary_family, labels: [{ lang: fr, label: "Complément familial"}]}
- { key: allocation_family_support, labels: [{ lang: fr, label: "Allocation de soutien familial"}]}
- { key: allocation_education_child_handicap, labels: [{ lang: fr, label: "Allocation d’éducation de l’enfant handicapé"}]}
charges:
- { key: rent, labels: [{ lang: fr, label: "Loyer" }]}
- { key: home_ownership, labels: [{ lang: fr, label: "Accession à la propriété" }]}
- { key: costs_accomodation, labels: [{ lang: fr, label: "Frais d’hébergement" }]}
- { key: home_insurance, labels: [{ lang: fr, label: "Assurance habitation" }]}
- { key: taxes, labels: [{ lang: fr, label: "Impôts (taxe habitation, taxe foncière, ordures ménagères, redevances incitatives)" }]}
- { key: impots, labels: [{lang: fr, label: "Impôts"}]}
- { key: electricity, labels: [{ lang: fr, label: "Electricité" }]}
- { key: gas, labels: [{ lang: fr, label: "Gaz en bouteille" }]}
- { key: heating, labels: [{ lang: fr, label: "Autre moyen de chauffage" }]}
- { key: water, labels: [{ lang: fr, label: "Eau" }]}
- { key: school_fees, labels: [ { lang: fr, label: "Frais de scolarité"}]}
- { key: alimony, labels: [ { lang: fr, label: "Pension alimentaire à reverser"}]}
- { key: child_care, labels: [ { lang: fr, label: "Frais de garde (en totalité)"}]}
- { key: telecom, labels: [ { lang: fr, label: "Frais de communication fixe"}]}
- { key: mobilephone, labels: [ { lang: fr, label: "Frais de communication mobile"}]}
- { key: internet, labels: [ { lang: fr, label: "Frais de communication internet"}]}
- { key: insurance, labels: [{ lang: fr, label: "Assurances"}]}
- { key: debt_commission, labels: [{ lang: fr, label: "Saisine de la commission surendettement"}]}
- { key: recovery_plan, labels: [{ lang: fr, label: "Plan de redressement"}]}
- { key: rpr, labels: [{ lang: fr, label: "PRP"}]}
- { key: moratoire, labels: [{lang: fr, label: "Moratoire"}]}
- { key: mutuelle, labels: [{lang: fr, label: "Mutuelle"}]}
- { key: transport, labels: [{lang: fr, label: "Frais de transport"}]}
- { key: decouvbank, labels: [{lang: fr, label: "Découvert bancaire utilisé"}]}
- { key: procsaisie, labels: [{lang: fr, label: "Procédure de saisie"}]}
- { key: indus, labels: [{lang: fr, label: "Indus"}]}
- { key: apurement, labels: [{lang: fr, label: "Plan d'apurement"}]}
- { key: debt_rent, labels: [{lang: fr, label: "Dette de loyer (hors APL)"}]}
- { key: debt_property, labels: [{lang: fr, label: "Dette d'accession à la propriété"}]}
- { key: debt_lodging, labels: [{lang: fr, label: "Dette de frais d’hébergement"}]}
- { key: debt_electricity, labels: [{lang: fr, label: "Dette d'électricité"}]}
- { key: debt_water, labels: [{lang: fr, label: "Dette d'eau"}]}
- { key: debt_heating, labels: [{lang: fr, label: "Dette d'autre moyen de chauffage"}]}
- { key: debt_gas, labels: [{lang: fr, label: "Dette de gaz en bouteille"}]}
- { key: debt_house_insurance, labels: [{lang: fr, label: "Dette d'assurance habitation"}]}
- { key: debt_housing_taxes, labels: [{lang: fr, label: "Dette d'impôts liées au logement"}]}
- { key: debt_taxes, labels: [{lang: fr, label: "Dette d'impôts autres"}]}
- { key: debt_school, labels: [{lang: fr, label: "Dette de frais de scolarité (cantine, transport, frais de scolarité, frais de garde)"}]}
- { key: debt_alimentation, labels: [{lang: fr, label: "Dette de pension alimentaire à reverser"}]}
- { key: debt_childcare, labels: [{lang: fr, label: "Dette de frais de garde (en totalité)"}]}
- { key: debt_phone, labels: [{lang: fr, label: "Dette de communication fixe"}]}
- { key: debt_mobile, labels: [{lang: fr, label: "Dette de communication portable"}]}
- { key: debt_internet, labels: [{lang: fr, label: "Dette de communication internet"}]}
- { key: debt_car_insurance, labels: [{lang: fr, label: "Dette d'assurance auto"}]}
- { key: debt_mutual, labels: [{lang: fr, label: "Dette de mutuelle"}]}
- { key: debt_transport, labels: [{lang: fr, label: "Dette de frais de transport"}]}
- { key: debt_bank, labels: [{lang: fr, label: "Dette de découvert bancaire utilisé"}]}
- { key: debt_garbage, labels: [{lang: fr, label: "Dette de taxe d’ordures ménagère"}]}
- { key: debt_other, labels: [{lang: fr, label: "Dette autre"}]}
- { key: autre, labels: [{lang: fr, label: "Autre"}]}
+1 -2
View File
@@ -1,3 +1,2 @@
chill_calendar: chill_calendar:
remote_calendars_sync: remote_calendar_dsn: null://null # no environment variable is allowed here
enabled: false
+4 -4
View File
@@ -5,10 +5,12 @@ doctrine:
# IMPORTANT: You MUST configure your server version, # IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file) # either here or in the DATABASE_URL env var (see .env file)
#server_version: '16' #server_version: '16'
use_savepoints: true profiling_collect_backtrace: '%kernel.debug%'
orm: orm:
auto_generate_proxy_classes: true validate_xml_mapping: true
naming_strategy: doctrine.orm.naming_strategy.default naming_strategy: doctrine.orm.naming_strategy.default
identity_generation_preferences:
Doctrine\DBAL\Platforms\PostgreSQLPlatform: sequence
auto_mapping: true auto_mapping: true
mappings: mappings:
App: App:
@@ -26,8 +28,6 @@ when@test:
when@prod: when@prod:
doctrine: doctrine:
orm: orm:
auto_generate_proxy_classes: false
proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
query_cache_driver: query_cache_driver:
type: pool type: pool
pool: doctrine.system_cache_pool pool: doctrine.system_cache_pool
@@ -13,6 +13,7 @@ doctrine_migrations:
'Chill\Migrations\AsideActivity': '@ChillAsideActivityBundle/migrations' 'Chill\Migrations\AsideActivity': '@ChillAsideActivityBundle/migrations'
'Chill\Migrations\Calendar': '@ChillCalendarBundle/migrations' 'Chill\Migrations\Calendar': '@ChillCalendarBundle/migrations'
'Chill\Migrations\Budget': '@ChillBudgetBundle/migrations' 'Chill\Migrations\Budget': '@ChillBudgetBundle/migrations'
'Chill\Migrations\Ticket': '@ChillTicketBundle/migrations'
all_or_nothing: all_or_nothing:
true true
+2 -2
View File
@@ -1,8 +1,9 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html # see https://symfony.com/doc/current/reference/configuration/framework.html
framework: framework:
secret: '%env(APP_SECRET)%' secret: '%env(APP_SECRET)%'
#csrf_protection: true annotations: false
http_method_override: false http_method_override: false
handle_all_throwables: true
# Enables session support. Note that the session will ONLY be started if you read or write from it. # Enables session support. Note that the session will ONLY be started if you read or write from it.
# Remove or comment this section to explicitly disable session support. # Remove or comment this section to explicitly disable session support.
@@ -10,7 +11,6 @@ framework:
handler_id: null handler_id: null
cookie_secure: auto cookie_secure: auto
cookie_samesite: lax cookie_samesite: lax
storage_factory_id: session.storage.factory.native
#esi: true #esi: true
#fragments: true #fragments: true
+10
View File
@@ -0,0 +1,10 @@
services:
Psr\Http\Message\RequestFactoryInterface: '@http_discovery.psr17_factory'
Psr\Http\Message\ResponseFactoryInterface: '@http_discovery.psr17_factory'
Psr\Http\Message\ServerRequestFactoryInterface: '@http_discovery.psr17_factory'
Psr\Http\Message\StreamFactoryInterface: '@http_discovery.psr17_factory'
Psr\Http\Message\UploadedFileFactoryInterface: '@http_discovery.psr17_factory'
Psr\Http\Message\UriFactoryInterface: '@http_discovery.psr17_factory'
http_discovery.psr17_factory:
class: Http\Discovery\Psr17Factory
+9 -3
View File
@@ -1,8 +1,5 @@
framework: framework:
messenger: messenger:
# reset services after consuming messages
reset_on_message: true
# Uncomment this (and the failed transport below) to send failed messages to this transport for later handling. # Uncomment this (and the failed transport below) to send failed messages to this transport for later handling.
# failure_transport: failed # failure_transport: failed
@@ -29,3 +26,12 @@ framework:
# end of routes added by chill-bundles recipes # end of routes added by chill-bundles recipes
# Route your messages to the transports # Route your messages to the transports
# 'App\Message\YourMessage': async # 'App\Message\YourMessage': async
when@test:
framework:
messenger:
transports:
# the tests do not depend on RabbitMQ
# For more Messenger testing tools, see https://github.com/zenstruck/messenger-test
async: 'in-memory://'
priority: 'in-memory://'
+2 -9
View File
@@ -1,5 +1,5 @@
monolog: monolog:
channels: channels: # To see all channels, run bin/console debug:autowiring logger
- deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists - deprecation # Deprecations are logged in the dedicated "deprecation" channel when it exists
when@dev: when@dev:
@@ -10,14 +10,6 @@ when@dev:
path: "%kernel.logs_dir%/%kernel.environment%.log" path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug level: debug
channels: ["!event"] channels: ["!event"]
# uncomment to get logging in your browser
# you may have to allow bigger header sizes in your Web server configuration
#firephp:
# type: firephp
# level: info
#chromephp:
# type: chromephp
# level: info
console: console:
type: console type: console
process_psr_3_messages: false process_psr_3_messages: false
@@ -46,6 +38,7 @@ when@prod:
handler: nested handler: nested
excluded_http_codes: [404, 405] excluded_http_codes: [404, 405]
buffer_size: 50 # How many messages should be saved? Prevent memory leaks buffer_size: 50 # How many messages should be saved? Prevent memory leaks
channels: ["!deprecation"]
nested: nested:
type: stream type: stream
path: php://stderr path: php://stderr
+1 -1
View File
@@ -4,7 +4,7 @@ framework:
texter_transports: texter_transports:
ovhcloud: '%env(OVHCLOUD_DSN)%' ovhcloud: '%env(OVHCLOUD_DSN)%'
channel_policy: channel_policy:
# use chat/slack, chat/telegram, sms/twilio or sms/nexmo # use chat/slack, chat/telegram, sms/twilio or sms/vonage
urgent: ['email'] urgent: ['email']
high: ['email'] high: ['email']
medium: ['email'] medium: ['email']
+10
View File
@@ -0,0 +1,10 @@
pentatrion_vite:
default_config: chill
configs:
# assets of the chill bundles
chill:
build_directory: build
when@prod:
pentatrion_vite:
cache: true
+9 -10
View File
@@ -1,5 +1,4 @@
security: security:
enable_authenticator_manager: true
# https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords # https://symfony.com/doc/current/security.html#registering-the-user-hashing-passwords
password_hashers: password_hashers:
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto' Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface: 'auto'
@@ -19,7 +18,7 @@ security:
# end of providers added by chill-bundles recipes # end of providers added by chill-bundles recipes
firewalls: firewalls:
dev: dev:
pattern: ^/(_(profiler|wdt)|css|images|js)/ pattern: ^/(_profiler(/|$)|(_wdt|css|images|js)/)
security: false security: false
# those lines are added by chill-bundles recipe, and are requires to make chill-bundles working # those lines are added by chill-bundles recipe, and are requires to make chill-bundles working
# this firewall is in use for wopi endpoint, which requires # this firewall is in use for wopi endpoint, which requires
@@ -27,20 +26,20 @@ security:
pattern: ^/wopi pattern: ^/wopi
provider: chill_chain_provider provider: chill_chain_provider
stateless: true stateless: true
guard: jwt:
authenticators: authenticator: lexik_jwt_authentication.security.jwt_authenticator
- lexik_jwt_authentication.jwt_token_authenticator
dav: dav:
pattern: ^/dav pattern: ^/dav
provider: chill_chain_provider provider: chill_chain_provider
stateless: true stateless: true
guard: jwt:
authenticators: authenticator: chill_doc_store.jwt_on_dav_authenticator
- Chill\DocStoreBundle\Security\Guard\JWTOnDavUrlAuthenticator
# this firewall is the main firewall for chill. It should be the last one in the stack, # this firewall is the main firewall for chill. It should be the last one in the stack,
# unless you have specific needs # unless you have specific needs
chill_main: chill_main:
provider: chill_chain_provider provider: chill_chain_provider
entry_point: form_login
user_checker: chill_security.user_checker
form_login: form_login:
csrf_parameter: _csrf_token csrf_parameter: _csrf_token
csrf_token_id: authenticate csrf_token_id: authenticate
@@ -54,8 +53,8 @@ security:
# Note: Only the *first* access control that matches will be used # Note: Only the *first* access control that matches will be used
access_control: access_control:
# those lines are added by chill-bundles recipes, and are requires to make chill-bundles working # those lines are added by chill-bundles recipes, and are requires to make chill-bundles working
- { path: ^/(login|logout), roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/(login|logout), roles: PUBLIC_ACCESS }
- { path: ^/public, roles: IS_AUTHENTICATED_ANONYMOUSLY } - { path: ^/public, roles: PUBLIC_ACCESS }
- { path: ^/wopi, roles: IS_AUTHENTICATED_FULLY } - { path: ^/wopi, roles: IS_AUTHENTICATED_FULLY }
# access for homepage, the homepage redirect admin to admin section # access for homepage, the homepage redirect admin to admin section
- { path: ^/$, roles: [ IS_AUTHENTICATED_REMEMBERED ] } - { path: ^/$, roles: [ IS_AUTHENTICATED_REMEMBERED ] }
@@ -1,3 +0,0 @@
sensio_framework_extra:
router:
annotations: false
+1 -1
View File
@@ -1,5 +1,5 @@
twig: twig:
default_path: '%kernel.project_dir%/templates' file_name_pattern: '*.twig'
when@test: when@test:
twig: twig:
+7 -1
View File
@@ -1,3 +1,9 @@
ux_translator: ux_translator:
# The directory where the JavaScript translations are dumped # The directory where the JavaScript translations are dumped
dump_directory: '%kernel.project_dir%/vendor/chill-project/chill-bundles/var/translations' dump_directory: '%kernel.project_dir%/var/translations'
when@prod:
ux_translator:
# Control whether TypeScript types are dumped alongside translations.
# Disable this if you do not use TypeScript (e.g. in production when using AssetMapper), to speed up cache warmup.
dump_typescript: true
+2 -6
View File
@@ -1,15 +1,11 @@
when@dev: when@dev:
web_profiler: web_profiler:
toolbar: true toolbar: true
intercept_redirects: false
framework: framework:
profiler: { only_exceptions: false } profiler:
collect_serializer_data: true
when@test: when@test:
web_profiler:
toolbar: false
intercept_redirects: false
framework: framework:
profiler: { collect: false } profiler: { collect: false }
-45
View File
@@ -1,45 +0,0 @@
webpack_encore:
# The path where Encore is building the assets - i.e. Encore.setOutputPath()
output_path: '%kernel.project_dir%/public/build'
# If multiple builds are defined (as shown below), you can disable the default build:
# output_path: false
# Set attributes that will be rendered on all script and link tags
script_attributes:
defer: true
# Uncomment (also under link_attributes) if using Turbo Drive
# https://turbo.hotwired.dev/handbook/drive#reloading-when-assets-change
# 'data-turbo-track': reload
# link_attributes:
# Uncomment if using Turbo Drive
# 'data-turbo-track': reload
# If using Encore.enableIntegrityHashes() and need the crossorigin attribute (default: false, or use 'anonymous' or 'use-credentials')
# crossorigin: 'anonymous'
# Preload all rendered script and link tags automatically via the HTTP/2 Link header
# preload: true
# Throw an exception if the entrypoints.json file is missing or an entry is missing from the data
# strict_mode: false
# If you have multiple builds:
# builds:
# frontend: '%kernel.project_dir%/public/frontend/build'
# pass the build name as the 3rd argument to the Twig functions
# {{ encore_entry_script_tags('entry1', null, 'frontend') }}
framework:
assets:
json_manifest_path: '%kernel.project_dir%/public/build/manifest.json'
#when@prod:
# webpack_encore:
# # Cache the entrypoints.json (rebuild Symfony's cache when entrypoints.json changes)
# # Available in version 1.2
# cache: true
#when@test:
# webpack_encore:
# strict_mode: false
+53 -69
View File
@@ -7,8 +7,7 @@ framework:
- Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWorkEvaluationDocument - Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWorkEvaluationDocument
- Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWork - Chill\PersonBundle\Entity\AccompanyingPeriod\AccompanyingPeriodWork
- Chill\DocStoreBundle\Entity\AccompanyingCourseDocument - Chill\DocStoreBundle\Entity\AccompanyingCourseDocument
label: label: 'vendee_internal.workflow.label'
fr: 'Suivi CD85'
support_strategy: Chill\MainBundle\Workflow\RelatedEntityWorkflowSupportsStrategy support_strategy: Chill\MainBundle\Workflow\RelatedEntityWorkflowSupportsStrategy
marking_store: marking_store:
service: Chill\MainBundle\Workflow\EntityWorkflowMarkingStore service: Chill\MainBundle\Workflow\EntityWorkflowMarkingStore
@@ -16,78 +15,68 @@ framework:
places: places:
initial: initial:
metadata: metadata:
label: label: 'vendee_internal.place.initial'
fr: Étape initiale
attenteModification: attenteModification:
metadata: metadata:
label: label: 'vendee_internal.place.attente_modification'
fr: En attente de modification du document
validationFilterInputLabels: validationFilterInputLabels:
forward: {fr: Modification effectuée} forward: 'vendee_internal.validation_filter.attente_modification.forward'
backward: {fr: Pas de modification effectuée} backward: 'vendee_internal.validation_filter.attente_modification.backward'
neutral: {fr: Autre} neutral: 'vendee_internal.validation_filter.attente_modification.neutral'
attenteMiseEnForme: attenteMiseEnForme:
metadata: metadata:
label: label: 'vendee_internal.place.attente_mise_en_forme'
fr: En attente de mise en forme
validationFilterInputLabels: validationFilterInputLabels:
forward: {fr: Mise en forme terminée} forward: 'vendee_internal.validation_filter.attente_mise_en_forme.forward'
backward: {fr: Pas de mise en forme effectuée} backward: 'vendee_internal.validation_filter.attente_mise_en_forme.backward'
neutral: {fr: Autre} neutral: 'vendee_internal.validation_filter.attente_mise_en_forme.neutral'
attenteVisa: attenteVisa:
metadata: metadata:
label: label: 'vendee_internal.place.attente_visa'
fr: En attente de visa
validationFilterInputLabels: validationFilterInputLabels:
forward: {fr: Visa accordé} forward: 'vendee_internal.validation_filter.attente_visa.forward'
backward: {fr: Visa refusé} backward: 'vendee_internal.validation_filter.attente_visa.backward'
neutral: {fr: Autre} neutral: 'vendee_internal.validation_filter.attente_visa.neutral'
attenteTraitement: attenteTraitement:
metadata: metadata:
label: label: 'vendee_internal.place.attente_traitement'
fr: En attente de traitement
validationFilterInputLabels: validationFilterInputLabels:
forward: {fr: Traitement terminé favorablement} forward: 'vendee_internal.validation_filter.attente_traitement.forward'
backward: {fr: Traitement terminé défavorablement} backward: 'vendee_internal.validation_filter.attente_traitement.backward'
neutral: {fr: Autre} neutral: 'vendee_internal.validation_filter.attente_traitement.neutral'
attenteEnvoi: attenteEnvoi:
metadata: metadata:
label: label: 'vendee_internal.place.attente_envoi'
fr: En attente d'envoi
validationFilterInputLabels: validationFilterInputLabels:
forward: {fr: Document envoyé} forward: 'vendee_internal.validation_filter.attente_envoi.forward'
backward: {fr: Document non envoyé} backward: 'vendee_internal.validation_filter.attente_envoi.backward'
neutral: {fr: Autre} neutral: 'vendee_internal.validation_filter.attente_envoi.neutral'
attenteValidationMiseEnForme: attenteValidationMiseEnForme:
metadata: metadata:
label: label: 'vendee_internal.place.attente_validation_mise_en_forme'
fr: En attente de validation de la mise en forme
validationFilterInputLabels: validationFilterInputLabels:
forward: {fr: Validation de la mise en forme} forward: 'vendee_internal.validation_filter.attente_validation_mise_en_forme.forward'
backward: {fr: Refus de validation de la mise en forme} backward: 'vendee_internal.validation_filter.attente_validation_mise_en_forme.backward'
neutral: {fr: Autre} neutral: 'vendee_internal.validation_filter.attente_validation_mise_en_forme.neutral'
attenteReceptionExternal: attenteReceptionExternal:
metadata: metadata:
isSentExternal: true isSentExternal: true
onExternalView: clotureApresLectureEnvoiExterne onExternalView: clotureApresLectureEnvoiExterne
label: label: 'vendee_internal.place.attente_reception_external'
fr: En attente d'ouverture par un destinataire externe
validationFilterInputLabels: validationFilterInputLabels:
forward: {fr: Document reçu par un destinataire externe} forward: 'vendee_internal.validation_filter.attente_reception_external.forward'
backward: {fr: Document non reçu par un destinataire externe} backward: 'vendee_internal.validation_filter.attente_reception_external.backward'
neutral: {fr: Autre} neutral: 'vendee_internal.validation_filter.attente_reception_external.neutral'
annule: annule:
metadata: metadata:
isFinal: true isFinal: true
isFinalPositive: false isFinalPositive: false
label: label: 'vendee_internal.place.annule'
fr: Annulé
final: final:
metadata: metadata:
isFinal: true isFinal: true
isFinalPositive: true isFinalPositive: true
label: label: 'vendee_internal.place.final'
fr: Finalisé
transitions: transitions:
# transition qui avancent # transition qui avancent
demandeModificationDocument: demandeModificationDocument:
@@ -95,8 +84,7 @@ framework:
- initial - initial
to: attenteModification to: attenteModification
metadata: metadata:
label: label: 'vendee_internal.transition.demande_modification_document'
fr: Demande de modification du document
isForward: true isForward: true
demandeMiseEnForme: demandeMiseEnForme:
from: from:
@@ -104,16 +92,14 @@ framework:
- attenteModification - attenteModification
to: attenteMiseEnForme to: attenteMiseEnForme
metadata: metadata:
label: label: 'vendee_internal.transition.demande_mise_en_forme'
fr: Demande de mise en forme
isForward: true isForward: true
demandeValidationMiseEnForme: demandeValidationMiseEnForme:
from: from:
- attenteMiseEnForme - attenteMiseEnForme
to: attenteValidationMiseEnForme to: attenteValidationMiseEnForme
metadata: metadata:
label: label: 'vendee_internal.transition.demande_validation_mise_en_forme'
fr: Demande de validation de la mise en forme
isForward: true isForward: true
demandeVisa: demandeVisa:
from: from:
@@ -124,8 +110,7 @@ framework:
- attenteTraitement - attenteTraitement
to: attenteVisa to: attenteVisa
metadata: metadata:
label: label: 'vendee_internal.transition.demande_visa'
fr: Demande de visa
isForward: true isForward: true
demandeTraitement: demandeTraitement:
from: from:
@@ -136,7 +121,7 @@ framework:
- attenteVisa - attenteVisa
to: attenteTraitement to: attenteTraitement
metadata: metadata:
label: {fr: Demande de traitement} label: 'vendee_internal.transition.demande_traitement'
isForward: true isForward: true
demandeEnvoi: demandeEnvoi:
from: from:
@@ -148,7 +133,7 @@ framework:
- attenteTraitement - attenteTraitement
to: attenteEnvoi to: attenteEnvoi
metadata: metadata:
label: {fr: Demande d'envoi} label: 'vendee_internal.transition.demande_envoi'
isForward: true isForward: true
demandeEnvoiExterne: demandeEnvoiExterne:
from: from:
@@ -160,7 +145,7 @@ framework:
- attenteTraitement - attenteTraitement
to: attenteReceptionExternal to: attenteReceptionExternal
metadata: metadata:
label: {fr: Envoi sécurisé par courrier électronique} label: 'vendee_internal.transition.demande_envoi_externe'
isForward: true isForward: true
clotureApresLectureEnvoiExterne: clotureApresLectureEnvoiExterne:
from: from:
@@ -170,7 +155,7 @@ framework:
metadata: metadata:
transitionGuard: system transitionGuard: system
isForward: true isForward: true
label: {fr: Consultation de l'envoi sécurisé} label: 'vendee_internal.transition.cloture_apres_lecture_envoi_externe'
annulation: annulation:
from: from:
- initial - initial
@@ -182,7 +167,7 @@ framework:
- attenteEnvoi - attenteEnvoi
to: annule to: annule
metadata: metadata:
label: {fr: Annulation} label: 'vendee_internal.transition.annulation'
isForward: false isForward: false
transitionGuard: 'system+only-dest' # can be 'system+only-dest' or 'only-dest' (only-dest is default) transitionGuard: 'system+only-dest' # can be 'system+only-dest' or 'only-dest' (only-dest is default)
# transitions qui répètent l'étape # transitions qui répètent l'étape
@@ -192,20 +177,20 @@ framework:
- attenteValidationMiseEnForme - attenteValidationMiseEnForme
to: attenteMiseEnForme to: attenteMiseEnForme
metadata: metadata:
label: {fr: Demande de mise en forme supplémentaire} label: 'vendee_internal.transition.demande_mise_en_forme_supplementaire'
demandeVisaSupplementaire: demandeVisaSupplementaire:
from: from:
- attenteVisa - attenteVisa
to: attenteVisa to: attenteVisa
metadata: metadata:
label: {fr: Demande de visa supplémentaire} label: 'vendee_internal.transition.demande_visa_supplementaire'
isForward: true isForward: true
demandeTraitementSupplementaire: demandeTraitementSupplementaire:
from: from:
- attenteTraitement - attenteTraitement
to: attenteTraitement to: attenteTraitement
metadata: metadata:
label: {fr: Demande de traitement supplémentaire} label: 'vendee_internal.transition.demande_traitement_supplementaire'
# transitions qui renvoient vers une étape précédente # transitions qui renvoient vers une étape précédente
refusEtModificationDocument: refusEtModificationDocument:
from: from:
@@ -214,8 +199,7 @@ framework:
- attenteEnvoi - attenteEnvoi
to: attenteModification to: attenteModification
metadata: metadata:
label: label: 'vendee_internal.transition.refus_et_modification_document'
fr: Refus et demande de modification du document
isForward: false isForward: false
refusEtDemandeMiseEnForme: refusEtDemandeMiseEnForme:
from: from:
@@ -224,21 +208,21 @@ framework:
- attenteEnvoi - attenteEnvoi
to: attenteMiseEnForme to: attenteMiseEnForme
metadata: metadata:
label: {fr: Refus et demande de mise en forme} label: 'vendee_internal.transition.refus_et_demande_mise_en_forme'
isForward: false isForward: false
refusEtDemandeVisa: refusEtDemandeVisa:
from: from:
- attenteEnvoi - attenteEnvoi
to: attenteVisa to: attenteVisa
metadata: metadata:
label: {fr: Refus et demande de visa} label: 'vendee_internal.transition.refus_et_demande_visa'
isForward: false isForward: false
refusEtDemandeTraitement: refusEtDemandeTraitement:
from: from:
- attenteEnvoi - attenteEnvoi
to: attenteTraitement to: attenteTraitement
metadata: metadata:
label: {fr: Refus et demande de traitement} label: 'vendee_internal.transition.refus_et_demande_traitement'
isForward: false isForward: false
# transition vers final # transition vers final
initialToFinal: initialToFinal:
@@ -246,7 +230,7 @@ framework:
- initial - initial
to: final to: final
metadata: metadata:
label: {fr: Clotûre immédiate et cloture positive} label: 'vendee_internal.transition.initial_to_final'
isForward: true isForward: true
attenteMiseEnFormeToFinal: attenteMiseEnFormeToFinal:
from: from:
@@ -254,26 +238,26 @@ framework:
- attenteValidationMiseEnForme - attenteValidationMiseEnForme
to: final to: final
metadata: metadata:
label: {fr: Mise en forme terminée et cloture positive} label: 'vendee_internal.transition.attente_mise_en_forme_to_final'
isForward: true isForward: true
attenteVisaToFinal: attenteVisaToFinal:
from: from:
- attenteVisa - attenteVisa
to: final to: final
metadata: metadata:
label: {fr: Accorde le visa et cloture positive} label: 'vendee_internal.transition.attente_visa_to_final'
isForward: true isForward: true
attenteTraitementToFinal: attenteTraitementToFinal:
from: from:
- attenteTraitement - attenteTraitement
to: final to: final
metadata: metadata:
label: {fr: Traitement terminé et cloture positive} label: 'vendee_internal.transition.attente_traitement_to_final'
isForward: true isForward: true
attenteEnvoiToFinal: attenteEnvoiToFinal:
from: from:
- attenteEnvoi - attenteEnvoi
to: final to: final
metadata: metadata:
label: {fr: Envoyé et cloture positive} label: 'vendee_internal.transition.attente_envoi_to_final'
isForward: true isForward: true
+2 -2
View File
@@ -1,5 +1,5 @@
<?php <?php
if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) { foreach (glob(dirname(__DIR__).'/var/cache/prod/*.preload.php') ?: [] as $file) {
require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php'; require $file;
} }
+5 -3
View File
@@ -1,3 +1,5 @@
#index: controllers:
# path: / resource:
# controller: App\Controller\DefaultController::index path: ../src/Controller/
namespace: App\Controller
type: attribute
-7
View File
@@ -1,7 +0,0 @@
controllers:
resource: ../../src/Controller/
type: annotation
kernel:
resource: ../../src/Kernel.php
type: annotation
+10
View File
@@ -0,0 +1,10 @@
when@dev:
swagger_ui:
path: /_dev/swagger
controller: Chill\MainBundle\Controller\Dev\SwaggerController::index
swagger_specs:
path: /_dev/specs/{filename}
controller: Chill\MainBundle\Controller\Dev\SwaggerController::spec
requirements:
filename: '[a-zA-Z0-9_-]+\.yaml'
+9
View File
@@ -0,0 +1,9 @@
when@dev:
_pentatrion_vite:
prefix: /build
resource: "@PentatrionViteBundle/Resources/config/routing.yaml"
_profiler_vite:
path: /_profiler/vite
defaults:
_controller: Pentatrion\ViteBundle\Controller\ProfilerController::info
+3
View File
@@ -0,0 +1,3 @@
_security_logout:
resource: security.route_loader.logout
type: service
-19
View File
@@ -16,23 +16,6 @@ else
echo "we assume the database is ready"; echo "we assume the database is ready";
fi fi
if [ $(id -u) = "0" ]; then
{ \
echo "[www]"; \
echo ""; \
echo "user=${PHP_FPM_USER}"; \
echo "group=${PHP_FPM_GROUP}"; \
} > /usr/local/etc/php-fpm.d/zz-user.conf
fi
{ \
echo ""; \
echo "session.save_handler = redis" ; \
echo "session.save_path = \"tcp://${REDIS_HOST}:${REDIS_PORT}?db=10\"" ; \
echo "session.gc_maxlifetime = ${SESSION_LIFETIME}" ; \
} >> /usr/local/etc/php/conf.d/custom.ini
if [ "${APP_ENV}" = "prod" ]; then if [ "${APP_ENV}" = "prod" ]; then
composer dump-env "${APP_ENV}" composer dump-env "${APP_ENV}"
chmod +r /var/www/app/.env.local.php chmod +r /var/www/app/.env.local.php
@@ -48,8 +31,6 @@ fi
if [ "${CLEAR_CACHE}" != "false" ]; then if [ "${CLEAR_CACHE}" != "false" ]; then
#prepare cache #prepare cache
php /var/www/app/bin/console cache:clear --no-warmup php /var/www/app/bin/console cache:clear --no-warmup
chgrp ${PHP_FPM_GROUP} /var/www/app/var/cache -R && chmod g+rw /var/www/app/var/cache -R
chgrp ${PHP_FPM_GROUP} /var/www/app/var/log -R && chmod g+rw /var/www/app/var/log -R
fi fi
exec "${@}" exec "${@}"
+66
View File
@@ -0,0 +1,66 @@
<?php
declare(strict_types=1);
namespace DoctrineMigrations;
use Doctrine\DBAL\Schema\Schema;
use Doctrine\Migrations\AbstractMigration;
/**
* Pre-select the scopes of the user when creating an accompanying period.
*
* For each permissions group, the default scopes for the event
* `chill_person.accompanying_period.create` are the active scopes on which this
* group may create an accompanying period: the role `CHILL_PERSON_ACCOMPANYING_PERIOD_CREATE`,
* or `CHILL_PERSON_ACCOMPANYING_PERIOD_FULL`, which includes it in the role hierarchy.
*
* Groups which already have default scopes for this event are left untouched.
*
* @see vendor/chill-project/chill-bundles/docs/source/development/default-scopes-for-an-entity.md
*/
final class Version20261123150000 extends AbstractMigration
{
private const ON_EVENT = 'chill_person.accompanying_period.create';
private const ROLE_CREATE = 'CHILL_PERSON_ACCOMPANYING_PERIOD_CREATE';
private const ROLE_FULL = 'CHILL_PERSON_ACCOMPANYING_PERIOD_FULL';
public function getDescription(): string
{
return 'Add default scopes on the creation of accompanying periods, from the scopes on which each permissions group may create them';
}
public function up(Schema $schema): void
{
$this->addSql(
<<<'SQL'
WITH group_scopes AS (
SELECT DISTINCT prs.permissionsgroup_id AS group_id, rs.scope_id
FROM permissionsgroup_rolescope prs
JOIN role_scopes rs ON rs.id = prs.rolescope_id
JOIN scopes s ON s.id = rs.scope_id
WHERE rs.role IN (:role_create, :role_full) AND s.active
),
inserted AS (
INSERT INTO chill_main_permission_group_default_scopes (id, group_id, on_event)
SELECT nextval('chill_main_permission_group_default_scopes_id_seq'), g.group_id, :on_event
FROM (SELECT DISTINCT group_id FROM group_scopes) g
ON CONFLICT (group_id, on_event) DO NOTHING
RETURNING id, group_id
)
INSERT INTO chill_main_permission_group_default_scopes_scope (defaultscopes_id, scope_id)
SELECT inserted.id, group_scopes.scope_id
FROM inserted
JOIN group_scopes ON group_scopes.group_id = inserted.group_id
SQL,
['role_create' => self::ROLE_CREATE, 'role_full' => self::ROLE_FULL, 'on_event' => self::ON_EVENT],
);
}
public function down(Schema $schema): void
{
$this->throwIrreversibleMigrationException('The default scopes created by this migration cannot be distinguished from those added by hand.');
}
}
+12284
View File
File diff suppressed because it is too large. Load diff
+12 -12
View File
@@ -1,20 +1,20 @@
{ {
"workspaces": [
"vendor/chill-project/chill-bundles"
],
"private": true, "private": true,
"dependencies": {
"@chill-project/chill-bundles": "file:vendor/chill-project/chill-bundles"
},
"devDependencies": { "devDependencies": {
"@symfony/ux-translator": "file:vendor/symfony/ux-translator/assets", "@vitejs/plugin-vue": "^6.0.9",
"bootstrap": "5.2.3", "intl-messageformat": "^10.5.11",
"intl-messageformat": "^10.5.11" "sass": "^1.89.0",
"typescript": "^5.6.3",
"vite": "^8.3.0",
"vite-plugin-symfony": "^8.2.4"
}, },
"scripts": { "scripts": {
"specs-build": "yaml-merge vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillPersonBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillCalendarBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillThirdPartyBundle/chill.api.specs.yaml vendor/chill-project/chill-bundles/src/Bundle/ChillDocStoreBundle/chill.api.specs.yaml> templates/api/specs.yaml", "dev": "vite",
"specs-validate": "swagger-cli validate templates/api/specs.yaml", "build": "vite build",
"specs-create-dir": "mkdir -p templates/api", "prod": "npm run build"
"specs": "yarn run specs-create-dir && yarn run specs-build && yarn run specs-validate",
"dev": "yarn run encore dev",
"prod": "yarn run encore production"
}, },
"version": "0.0.0" "version": "0.0.0"
} }
+8
View File
@@ -0,0 +1,8 @@
parameters:
level: 6
paths:
- bin/
- config/
- public/
- src/
- tests/
+1 -1
View File
@@ -4,6 +4,6 @@ use App\Kernel;
require_once dirname(__DIR__).'/vendor/autoload_runtime.php'; require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
return function (array $context) { return static function (array $context) {
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']); return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
}; };
+4
View File
@@ -0,0 +1,4 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"reviewers": ["LenaertsJ"]
}
+103 -141
View File
@@ -1,81 +1,26 @@
{ {
"champs-libres/wopi-bundle": { "champs-libres/wopi-bundle": {
"version": "dev-master" "version": "dev-symfony-v5"
}, },
"chill-project/chill-bundles": { "chill-project/chill-bundles": {
"version": "3.0", "version": "dev-master"
"recipe": {
"repo": "gitlab.com/Chill-Projet/chill-recipes",
"branch": "main",
"version": "3.0",
"ref": "b8bfc2a355106205bfc235690053fdd96e055275"
},
"files": [
"config/packages/cache_chill.yaml",
"config/packages/chill.yaml",
"config/packages/chill_budget.yaml",
"config/packages/chill_calendar.yaml",
"config/packages/chill_doc_generator.yaml",
"config/packages/chill_doc_store.yaml",
"config/packages/doctrine_migrations_chill.yaml",
"config/packages/framework_chill.yaml",
"config/packages/mailer_chill.yaml",
"config/packages/routing_chill.yaml",
"config/packages/security_chill.yaml",
"config/packages/translation_chill.yaml",
"config/packages/twig_chill.yaml",
"config/routes/chill.yaml",
"config/routes/chill_wopi.yaml",
"config/routes/wopi.yaml",
"webpack.config.js.dist",
"package.json.dist",
".nvmrc",
".symfony.local.yaml",
"tsconfig.json",
"post-install-chill.sh"
]
}, },
"chill-project/chill-deploy": { "doctrine/deprecations": {
"version": "1.0", "version": "1.2",
"recipe": {
"repo": "gitlab.com/Chill-Projet/chill-recipes",
"branch": "main",
"version": "1.0",
"ref": "2d916e260041fca4852a8887ff113667c6297046"
},
"files": [
".gitea/workflows/release/update-composer-lock.yaml",
"docker/db/docker-entrypoint-initdb.d/0000-add-extensions.sql",
"docker/logstash/Dockerfile",
"docker/logstash/pipeline/logstash.conf",
"docker/nginx/Dockerfile",
"docker/nginx/default.conf",
"docker/nginx/nginx.with-collabora.conf",
"Dockerfile",
".dockerignore",
"entrypoint.sh",
".drone.yml"
]
},
"doctrine/annotations": {
"version": "1.14",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "1.0", "version": "1.0",
"ref": "a2759dd6123694c8d901d0ec80006e044c2e6457" "ref": "fdd756167454623e21f1d769c5b814b243782a67"
}, }
"files": [
"config/routes/annotations.yaml"
]
}, },
"doctrine/doctrine-bundle": { "doctrine/doctrine-bundle": {
"version": "2.12", "version": "3.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "2.4", "version": "3.0",
"ref": "91690c0a440faba1a3676256bcca2b4aa9f55b72" "ref": "7d10295408f32426bffd6e99c75c2cb0a7b823f2"
}, },
"files": [ "files": [
"config/packages/doctrine.yaml", "config/packages/doctrine.yaml",
@@ -84,7 +29,7 @@
] ]
}, },
"doctrine/doctrine-fixtures-bundle": { "doctrine/doctrine-fixtures-bundle": {
"version": "3.6", "version": "3.7",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
@@ -96,7 +41,7 @@
] ]
}, },
"doctrine/doctrine-migrations-bundle": { "doctrine/doctrine-migrations-bundle": {
"version": "3.3", "version": "3.6",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
@@ -109,13 +54,13 @@
] ]
}, },
"knplabs/knp-menu-bundle": { "knplabs/knp-menu-bundle": {
"version": "v3.4.2" "version": "v3.6.0"
}, },
"knplabs/knp-time-bundle": { "knplabs/knp-time-bundle": {
"version": "v1.20.0" "version": "v1.20.0"
}, },
"knpuniversity/oauth2-client-bundle": { "knpuniversity/oauth2-client-bundle": {
"version": "2.18", "version": "2.19",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes-contrib", "repo": "github.com/symfony/recipes-contrib",
"branch": "main", "branch": "main",
@@ -183,10 +128,48 @@
"repo": "github.com/symfony/recipes-contrib", "repo": "github.com/symfony/recipes-contrib",
"branch": "main", "branch": "main",
"version": "3.0", "version": "3.0",
"ref": "8aaba28c06547e50377dd9dce4104b9e384731a5" "ref": "0d4442802a90dd2d1d6c18618998b43f69af0d95"
}
},
"pentatrion/vite-bundle": {
"version": "v8.2.4"
},
"php-http/discovery": {
"version": "1.20",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "1.18",
"ref": "f45b5dd173a27873ab19f5e3180b2f661c21de02"
}, },
"files": [ "files": [
"config/packages/misd_phone_number.yaml" "config/packages/http_discovery.yaml"
]
},
"phpstan/phpstan": {
"version": "1.12",
"recipe": {
"repo": "github.com/symfony/recipes-contrib",
"branch": "main",
"version": "1.0",
"ref": "5e490cc197fb6bb1ae22e5abbc531ddc633b6767"
},
"files": [
"phpstan.dist.neon"
]
},
"phpunit/phpunit": {
"version": "10.5",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "10.0",
"ref": "bb22cf8d8c554a623b427d5f3416b538f5525233"
},
"files": [
".env.test",
"phpunit.dist.xml",
"tests/bootstrap.php"
] ]
}, },
"ramsey/uuid-doctrine": { "ramsey/uuid-doctrine": {
@@ -201,18 +184,6 @@
"config/packages/ramsey_uuid_doctrine.yaml" "config/packages/ramsey_uuid_doctrine.yaml"
] ]
}, },
"sensio/framework-extra-bundle": {
"version": "5.6",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "5.2",
"ref": "fb7e19da7f013d0d422fa9bce16f5c510e27609b"
},
"files": [
"config/packages/sensio_framework_extra.yaml"
]
},
"symfony/console": { "symfony/console": {
"version": "5.4", "version": "5.4",
"recipe": { "recipe": {
@@ -238,24 +209,25 @@
] ]
}, },
"symfony/flex": { "symfony/flex": {
"version": "2.4", "version": "2.9",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "1.0", "version": "2.4",
"ref": "146251ae39e06a95be0fe3d13c807bcf3938b172" "ref": "52e9754527a15e2b79d9a610f98185a1fe46622a"
}, },
"files": [ "files": [
".env" ".env",
".env.dev"
] ]
}, },
"symfony/framework-bundle": { "symfony/framework-bundle": {
"version": "5.4", "version": "6.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.4", "version": "6.4",
"ref": "3cd216a4d007b78d8554d44a5b1c0a446dab24fb" "ref": "27e6ec400ee3394b4bd57cf361f27700a13af1d7"
}, },
"files": [ "files": [
"config/packages/cache.yaml", "config/packages/cache.yaml",
@@ -269,69 +241,78 @@
] ]
}, },
"symfony/mailer": { "symfony/mailer": {
"version": "5.4", "version": "6.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "4.3", "version": "4.3",
"ref": "df66ee1f226c46f01e85c29c2f7acce0596ba35a" "ref": "710cae90ab3e5d3f4a747e9ce6ae33299d7ae83b"
}, },
"files": [ "files": [
"config/packages/mailer.yaml" "config/packages/mailer.yaml"
] ]
}, },
"symfony/messenger": { "symfony/maker-bundle": {
"version": "5.4", "version": "1.50",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.4", "version": "1.0",
"ref": "8bd5f27013fb1d7217191c548e340f0bdb11912c" "ref": "fadbfe33303a76e25cb63401050439aa9b1a9c7f"
}
},
"symfony/messenger": {
"version": "6.4",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "6.0",
"ref": "d8936e2e2230637ef97e5eecc0eea074eecae58b"
}, },
"files": [ "files": [
"config/packages/messenger.yaml" "config/packages/messenger.yaml"
] ]
}, },
"symfony/monolog-bundle": { "symfony/monolog-bundle": {
"version": "3.10", "version": "3.11",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "3.7", "version": "3.7",
"ref": "aff23899c4440dd995907613c1dd709b6f59503f" "ref": "feb8fd9520b5694c7d0d2ba17fd4b4d33f9dd9cf"
}, },
"files": [ "files": [
"config/packages/monolog.yaml" "config/packages/monolog.yaml"
] ]
}, },
"symfony/notifier": { "symfony/notifier": {
"version": "5.4", "version": "6.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.0", "version": "5.0",
"ref": "178877daf79d2dbd62129dd03612cb1a2cb407cc" "ref": "b912054fd9639f5fad62493cc24439048c2fd045"
}, },
"files": [ "files": [
"config/packages/notifier.yaml" "config/packages/notifier.yaml"
] ]
}, },
"symfony/ovh-cloud-notifier": { "symfony/ovh-cloud-notifier": {
"version": "5.4", "version": "6.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.1", "version": "5.1",
"ref": "fe2e382c22d60eae9ad54cb22862b1c15291fdf8" "ref": "3021c49f22f8f444550cadb5c1144cbd7a200295"
} }
}, },
"symfony/routing": { "symfony/routing": {
"version": "5.4", "version": "6.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.3", "version": "6.2",
"ref": "85de1d8ae45b284c3c84b668171d2615049e698f" "ref": "e0a11b4ccb8c9e70b574ff5ad3dfdcd41dec5aa6"
}, },
"files": [ "files": [
"config/packages/routing.yaml", "config/packages/routing.yaml",
@@ -339,24 +320,25 @@
] ]
}, },
"symfony/security-bundle": { "symfony/security-bundle": {
"version": "5.4", "version": "6.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.3", "version": "6.4",
"ref": "98f1f2b0d635908c2b40f3675da2d23b1a069d30" "ref": "d7b1c0401047df8cf5dc72fd078fad1372228913"
}, },
"files": [ "files": [
"config/packages/security.yaml" "config/packages/security.yaml",
"config/routes/security.yaml"
] ]
}, },
"symfony/translation": { "symfony/translation": {
"version": "5.4", "version": "6.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.3", "version": "6.3",
"ref": "e28e27f53663cc34f0be2837aba18e3a1bef8e7b" "ref": "620a1b84865ceb2ba304c8f8bf2a185fbf32a843"
}, },
"files": [ "files": [
"config/packages/translation.yaml", "config/packages/translation.yaml",
@@ -364,12 +346,12 @@
] ]
}, },
"symfony/twig-bundle": { "symfony/twig-bundle": {
"version": "5.4", "version": "6.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.4", "version": "6.4",
"ref": "bb2178c57eee79e6be0b297aa96fc0c0def81387" "ref": "06dacf16872358cb1f2494e089070ff2d045233a"
}, },
"files": [ "files": [
"config/packages/twig.yaml", "config/packages/twig.yaml",
@@ -377,17 +359,16 @@
] ]
}, },
"symfony/ux-translator": { "symfony/ux-translator": {
"version": "2.23", "version": "2.32",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "2.9", "version": "2.32",
"ref": "bc396565cc4cab95692dd6df810553dc22e352e1" "ref": "20e2abac415da4c3a9a6bafa059a6419beb74593"
}, },
"files": [ "files": [
"assets/translator.js", "assets/translator.js",
"config/packages/ux_translator.yaml", "config/packages/ux_translator.yaml",
"var/translations/configuration.js",
"var/translations/index.js" "var/translations/index.js"
] ]
}, },
@@ -404,37 +385,18 @@
] ]
}, },
"symfony/web-profiler-bundle": { "symfony/web-profiler-bundle": {
"version": "5.4", "version": "6.4",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes", "repo": "github.com/symfony/recipes",
"branch": "main", "branch": "main",
"version": "5.3", "version": "6.1",
"ref": "24bbc3d84ef2f427f82104f766014e799eefcc3e" "ref": "8b51135b84f4266e3b4c8a6dc23c9d1e32e543b7"
}, },
"files": [ "files": [
"config/packages/web_profiler.yaml", "config/packages/web_profiler.yaml",
"config/routes/web_profiler.yaml" "config/routes/web_profiler.yaml"
] ]
}, },
"symfony/webpack-encore-bundle": {
"version": "1.17",
"recipe": {
"repo": "github.com/symfony/recipes",
"branch": "main",
"version": "1.10",
"ref": "eff2e505d4557c967b6710fe06bd947ba555cae5"
},
"files": [
"assets/app.js",
"assets/bootstrap.js",
"assets/controllers.json",
"assets/controllers/hello_controller.js",
"assets/styles/app.css",
"config/packages/webpack_encore.yaml",
"package.json",
"webpack.config.js"
]
},
"symfony/workflow": { "symfony/workflow": {
"version": "5.4", "version": "5.4",
"recipe": { "recipe": {
@@ -448,6 +410,6 @@
] ]
}, },
"twig/extra-bundle": { "twig/extra-bundle": {
"version": "v3.10.0" "version": "v3.22.0"
} }
} }
-3
View File
@@ -4,13 +4,10 @@
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>{% block title %}Welcome!{% endblock %}</title> <title>{% block title %}Welcome!{% endblock %}</title>
<link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>"> <link rel="icon" href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 128 128%22><text y=%221.2em%22 font-size=%2296%22>⚫️</text></svg>">
{# Run `composer require symfony/webpack-encore-bundle` to start using Symfony UX #}
{% block stylesheets %} {% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %} {% endblock %}
{% block javascripts %} {% block javascripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %} {% endblock %}
</head> </head>
<body> <body>
+13
View File
@@ -0,0 +1,13 @@
<?php
use Symfony\Component\Dotenv\Dotenv;
require dirname(__DIR__).'/vendor/autoload.php';
if (method_exists(Dotenv::class, 'bootEnv')) {
(new Dotenv())->bootEnv(dirname(__DIR__).'/.env');
}
if ($_SERVER['APP_DEBUG']) {
umask(0000);
}
+3
View File
@@ -0,0 +1,3 @@
vendee_internal:
workflow:
label: 'Suivi CD85'
+7 -12
View File
@@ -1,19 +1,14 @@
{ {
"extends": "./vendor/chill-project/chill-bundles/ts-config-base.json", "extends": "./vendor/chill-project/chill-bundles/ts-config-base.json",
"compilerOptions": { "compilerOptions": {
"sourceMap": true "sourceMap": true,
"baseUrl": "."
}, },
"includes": [ "include": [
"./vendor/chill-project/chill-bundles/src/Bundle/**/*.ts", "./assets/**/*.ts",
"./vendor/chill-project/chill-bundles/src/Bundle/**/*.vue", "./assets/**/*.vue",
"./src/**/*.ts", "./src/**/*.ts",
"./src/**/*.vue" "./src/**/*.vue",
], "./vite.config.ts"
"exclude": [
"./vendor/chill-project/chill-bundles/tests/*",
"./vendor/chill-project/chill-bundles/docs/*",
"./vendor/chill-project/chill-bundles/assets/translator.ts",
"./vendor/chill-project/chill-bundles/var/*.*"
] ]
} }
+31
View File
@@ -0,0 +1,31 @@
import { fileURLToPath, URL } from "node:url";
import { chillVitePreset } from "@chill-project/chill-bundles/vite";
import { defineConfig, mergeConfig } from "vite";
const r = (value: string): string =>
fileURLToPath(new URL(value, import.meta.url));
export default mergeConfig(
chillVitePreset({
// Passed explicitly: this config is ESM, and the preset's default relies on
// `__dirname` being available where it is bundled.
packageRoot: r("vendor/chill-project/chill-bundles"),
outputPath: "public/build",
publicPath: "/build/",
translationsPath: "var/translations",
}),
defineConfig({
resolve: {
// Chill's assets resolve their imports from Chill's own node_modules; keep
// one copy of the shared runtime rather than one per resolution root.
dedupe: [
"vue",
"pinia",
"vue-i18n",
"intl-messageformat",
"@symfony/ux-translator",
],
},
// this application has no entries of its own: only Chill's are built
}),
);
-149
View File
@@ -1,149 +0,0 @@
const Encore = require('@symfony/webpack-encore');
const { resolve, parse } = require('path');
const { readdir } = require('fs').promises;
/**
* get the file names inside given directory recursively, limiting to
* a given depth in the recursion
*
* @param string dir the directory
* @param int depth the maximum depth to look into
*/
async function* getFiles(dir, depth, ignored) {
const dirents = await readdir(dir, { withFileTypes: true });
for (const dirent of dirents) {
const res = resolve(dir, dirent.name);
if (dirent.isDirectory()) {
if (depth > 0) {
yield* getFiles(res, depth - 1, ignored);
}
} else if (ignored.includes(res)) {
continue;
} else {
yield res;
}
}
};
/**
* populate the config of encore in directories inside `'./src'` and
* `'./vendor'` and letting them to alter the encore config.
*
* if a file `chill.webpack.config.js` is found, the default function is
* imported and executed. This function receive two arguments:
*
* - `Encore`, the main encore object
* - `chillEntries`: the entries which will be appended to the main `chill` module,
* resulting in a chill.js and chill.css file.
*
*/
async function populateConfig(Encore, chillEntries) {
// chill-main contains some bootstrap that must be loaded first.
// we register them first and, then, store this chill.webpack.config.js file
// into `toIgnore`, ignoring it when we loop on other folders.
let
toIgnore = [];
// loop into chill main
for await (const f of getFiles('./vendor/chill-project/chill-bundles/src/Bundle/ChillMainBundle/', 1, [])) {
let filename = parse(f).base;
if (filename === 'chill.webpack.config.js') {
configure = require(f);
configure(Encore, chillEntries);
toIgnore.push(f);
}
}
// loop into other chill bundles
for await (const f of getFiles('./vendor/chill-project/chill-bundles/src/Bundle', 2, toIgnore)) {
let filename = parse(f).base;
if (filename === 'chill.webpack.config.js') {
configure = require(f);
configure(Encore, chillEntries);
}
}
// loop into other vendors
for await (const f of getFiles('./vendor/', 3, toIgnore)) {
let filename = parse(f).base;
if (filename === 'chill.webpack.config.js') {
configure = require(f);
configure(Encore, chillEntries);
}
}
// loop into src directory
for await (const f of getFiles('./src', 3, [])) {
let filename = parse(f).base;
if (filename === 'chill.webpack.config.js') {
configure = require(f);
configure(Encore, chillEntries);
}
}
};
// export the final configuration
module.exports = (async () => {
// Manually configure the runtime environment if not already configured yet by the "encore" command.
// It's useful when you use tools that rely on webpack.config.js file.
if (!Encore.isRuntimeEnvironmentConfigured()) {
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
}
// basic encore configuration
Encore
.setOutputPath('public/build/')
.setPublicPath('/build')
.enableSassLoader()
.enableVueLoader(() => {}, {
version: 3,
runtimeCompilerBuild: true,
})
.enableTypeScriptLoader(/*function (tsConfig){
tsConfig.appendTsSuffixTo = [/\.vue$/];
tsConfig.appendTsxSuffixTo = [/\.vue$/];
// temporary fix for https://github.com/vuejs/vue-loader/issues/1915 and https://github.com/vuejs/core/issues/2855
tsConfig.compilerOptions = {strict: !Encore.isProduction()};
tsConfig.compilerOptions.paths = {"translator": [resolve(__dirname, "./assets/translator.ts")]};
tsConfig.silent = false;
}*/)
//.enableForkedTypeScriptTypesChecking()
.autoProvidejQuery()
.enableSourceMaps(!Encore.isProduction())
.cleanupOutputBeforeBuild()
//.enableBuildNotifications()
.enableVersioning()
.enableSingleRuntimeChunk()
.splitEntryChunks()
//.addLoader({ test: /\.pdf$/, loader: 'file-loader', options: { name: '[name]_[hash].[ext]', outputPath: 'pdf/' } })
// configure Babel
// .configureBabel((config) => {
// config.plugins.push('@babel/a-babel-plugin');
// })
// enables and configure @babel/preset-env polyfills
// .configureBabelPresetEnv((config) => {
// config.useBuiltIns = 'usage';
// config.corejs = '3.23';
// })
;
Encore.addAliases({
translator: resolve(__dirname, './vendor/chill-project/chill-bundles/assets/translator')
});
// populate config with chill entries
let chillEntries = [];
await populateConfig(Encore, chillEntries);
//getting the encore config and appending chill entries
config = Encore.getWebpackConfig();
config.entry.chill = chillEntries;
if (!Encore.isProduction()) {
console.log(config);
config.devtool = 'eval-source-map';
}
return config;
})();
-7589
View File
File diff suppressed because it is too large. Load diff