Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@
$finder = new PhpCsFixer\Finder()
->name('*.php')
->in([
__DIR__ . '/app',
__DIR__ . '/config',
__DIR__ . '/db',
__DIR__ . '/htdocs/pages',
__DIR__ . '/sources',
__DIR__ . '/tests',
])
->notPath([
'config/reference.php',
'reference.php',
])
;

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ help:
} \
{ lastLine = $$0 }' $(MAKEFILE_LIST)

.PHONY: install docker-up docker-stop docker-down test test-functional test-functional-no-js test-functional-js hooks vendors db-seed db-migrations reset-db init console phpstan assets
.PHONY: install docker-up docker-stop docker-down test test-functional test-functional-no-js test-functional-js hooks vendors db-seed db-migrations reset-db init console phpstan assets config

##@ Setup

Expand Down
3 changes: 0 additions & 3 deletions app/config/config.yml

This file was deleted.

39 changes: 0 additions & 39 deletions app/config/config_dev.yml

This file was deleted.

28 changes: 0 additions & 28 deletions app/config/config_prod.yml

This file was deleted.

14 changes: 0 additions & 14 deletions app/config/routing_dev.yml

This file was deleted.

11 changes: 0 additions & 11 deletions app/config/services_test.yaml

This file was deleted.

1 change: 0 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@
"patches/setasign-tfpdf-tfpdf-php.patch"
]
},
"symfony-app-dir": "app",
"symfony-web-dir": "htdocs",
"symfony-bin-dir": "bin",
"symfony-var-dir": "var",
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ framework:
asset_mapper:
# The paths to make available to the asset mapper.
paths:
- '%kernel.project_dir%/../assets/'
importmap_path: '%kernel.project_dir%/../importmap.php'
- '%kernel.project_dir%/assets/'
importmap_path: '%kernel.project_dir%/importmap.php'
missing_import_mode: strict
vendor_dir: '%kernel.project_dir%/../assets/vendor'
vendor_dir: '%kernel.project_dir%/assets/vendor'
public_prefix: /dist/

when@prod:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,42 +29,42 @@ doctrine:
Association:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/../sources/AppBundle/Association/Entity'
dir: '%kernel.project_dir%/sources/AppBundle/Association/Entity'
prefix: 'AppBundle\Association\Entity'
AssembleeGenerale:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/../sources/AppBundle/AssembleeGenerale/Entity'
dir: '%kernel.project_dir%/sources/AppBundle/AssembleeGenerale/Entity'
prefix: 'AppBundle\AssembleeGenerale\Entity'
Accounting:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/../sources/AppBundle/Accounting/Entity'
dir: '%kernel.project_dir%/sources/AppBundle/Accounting/Entity'
prefix: 'AppBundle\Accounting\Entity'
Site:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/../sources/AppBundle/Site/Entity'
dir: '%kernel.project_dir%/sources/AppBundle/Site/Entity'
prefix: 'AppBundle\Site\Entity'
SuperApero:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/../sources/AppBundle/SuperApero/Entity'
dir: '%kernel.project_dir%/sources/AppBundle/SuperApero/Entity'
prefix: 'AppBundle\SuperApero\Entity'
Veille:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/../sources/AppBundle/Veille/Entity'
dir: '%kernel.project_dir%/sources/AppBundle/Veille/Entity'
prefix: 'AppBundle\Veille\Entity'
Event:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/../sources/AppBundle/Event/Entity'
dir: '%kernel.project_dir%/sources/AppBundle/Event/Entity'
prefix: 'AppBundle\Event\Entity'
PlanetePHP:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/../sources/PlanetePHP'
dir: '%kernel.project_dir%/sources/PlanetePHP'
prefix: 'PlanetePHP'

when@test:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
ewz_recaptcha:
public_key: '%env(RECAPTCHA_PUBLIC_KEY)%'
private_key: '%env(RECAPTCHA_PRIVATE_KEY)%'

when@test:
ewz_recaptcha:
enabled: false
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,9 @@ framework:
translator:
fallbacks: ["%locale%"]
enabled: true
default_path: "%kernel.project_dir%/../translations"
default_path: "%kernel.project_dir%/translations"
secret: "%env(SECRET)%"
router:
resource: "%kernel.project_dir%/config/routing.yml"
strict_requirements: ~
utf8: true
form: ~
Expand All @@ -33,3 +32,20 @@ framework:
Symfony\Component\HttpKernel\Exception\NotFoundHttpException:
log_level: debug
status_code: 404

when@dev:
framework:
router:
strict_requirements: true
profiler: { only_exceptions: false }
ide: '%env(default::resolve:SYMFONY_IDE)%'

when@test:
framework:
test: ~
router:
strict_requirements: true
profiler:
only_exceptions: false
collect: false
ide: '%env(default::resolve:SYMFONY_IDE)%'
File renamed without changes.
49 changes: 49 additions & 0 deletions config/packages/monolog.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
when@dev:
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: ["!event"]
console:
type: console
channels: ["!event", "!doctrine"]

when@test:
monolog:
handlers:
main:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
channels: ["!event"]
console:
type: console
channels: ["!event", "!doctrine"]
deprecation_stream:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.deprecations.log"
deprecation_filter:
type: filter
handler: deprecation_stream
max_level: info
channels: ["php"]

when@prod:
monolog:
handlers:
main:
type: fingers_crossed
excluded_http_codes: [404]
action_level: error
handler: nested
nested:
type: stream
path: "%kernel.logs_dir%/%kernel.environment%.log"
level: debug
syslog_handler:
type: syslog
level: error
console:
type: console
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
parameters:
locale: fr
database_host: "%env(DATABASE_HOST)%"
github_authenticator: "AppBundle\\Security\\GithubAuthenticator"
paybox_ips:
- '194.2.122.158'
Expand All @@ -20,3 +21,11 @@ parameters:
- '195.25.7.157'
- '195.25.7.159'
- '195.25.7.166'

when@dev:
parameters:
paybox_ips: [127.0.0.1, 192.168.42.1]
database_host: "db"

# Les paramètres de l'environnement de test sont dans config/services_test.yaml : ce fichier est
# chargé après config/services.yaml, qui redéfinit database_name/user/password/port.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ twig:
photo_storage: '@AppBundle\CFP\PhotoStorage'
global_menu_event_label: '%env(AFUP_GLOBAL_MENU_EVENT_LABEL)%'
form_themes: ['form_theme.html.twig']
default_path: "%kernel.project_dir%/../templates"
default_path: "%kernel.project_dir%/templates"
File renamed without changes.
9 changes: 9 additions & 0 deletions config/packages/web_profiler.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
when@dev:
web_profiler:
toolbar: true
intercept_redirects: false

when@test:
web_profiler:
toolbar: false
intercept_redirects: false
2 changes: 1 addition & 1 deletion app/config/reference.php → config/reference.php
Original file line number Diff line number Diff line change
Expand Up @@ -1042,7 +1042,7 @@
* enabled?: bool|Param, // Default: false
* },
* html?: bool|array{
* enabled?: bool|Param, // Default: false
* enabled?: bool|Param, // Default: true
* },
* markdown?: bool|array{
* enabled?: bool|Param, // Default: true
Expand Down
15 changes: 15 additions & 0 deletions app/config/routing.yml → config/routes.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,18 @@ global:

auth:
resource: "routing/auth.yml"

when@dev: &profiler_routes
_wdt:
resource: "@WebProfilerBundle/Resources/config/routing/wdt.php"
prefix: /_wdt

_profiler:
resource: "@WebProfilerBundle/Resources/config/routing/profiler.php"
prefix: /_profiler

_errors:
resource: "@FrameworkBundle/Resources/config/routing/errors.php"
prefix: /_error

when@test: *profiler_routes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading