mirror of
https://github.com/MarijnDoeve/TijdVoorDeTest.git
synced 2026-03-05 20:44:19 +01:00
Compare commits
3 Commits
785d5d1165
...
ac46f380cb
| Author | SHA1 | Date | |
|---|---|---|---|
| ac46f380cb | |||
| b281a199d3 | |||
| e97cb4b034 |
7
.env
7
.env
@@ -17,6 +17,7 @@
|
|||||||
###> symfony/framework-bundle ###
|
###> symfony/framework-bundle ###
|
||||||
APP_ENV=dev
|
APP_ENV=dev
|
||||||
APP_SECRET=
|
APP_SECRET=
|
||||||
|
APP_SHARE_DIR=var/share
|
||||||
###< symfony/framework-bundle ###
|
###< symfony/framework-bundle ###
|
||||||
|
|
||||||
###> doctrine/doctrine-bundle ###
|
###> doctrine/doctrine-bundle ###
|
||||||
@@ -37,3 +38,9 @@ MAILER_DSN=null://null
|
|||||||
SENTRY_DSN=
|
SENTRY_DSN=
|
||||||
###< sentry/sentry-symfony ###
|
###< sentry/sentry-symfony ###
|
||||||
XDEBUG_MODE=coverage
|
XDEBUG_MODE=coverage
|
||||||
|
|
||||||
|
###> symfony/routing ###
|
||||||
|
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
|
||||||
|
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
|
||||||
|
DEFAULT_URI=http://localhost
|
||||||
|
###< symfony/routing ###
|
||||||
|
|||||||
1
.gitattributes
vendored
1
.gitattributes
vendored
@@ -15,3 +15,4 @@ composer.lock text eol=lf merge=ours
|
|||||||
|
|
||||||
*.ico binary
|
*.ico binary
|
||||||
*.png binary
|
*.png binary
|
||||||
|
config/reference.php linguist-generated
|
||||||
|
|||||||
2
.idea/TijdVoorDeTest.iml
generated
2
.idea/TijdVoorDeTest.iml
generated
@@ -45,7 +45,6 @@
|
|||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/react/socket" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/react/socket" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/react/stream" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/react/stream" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/rector/rector" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/rector/rector" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/runtime/frankenphp-symfony" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/cli-parser" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/cli-parser" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/comparator" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/comparator" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/complexity" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/sebastian/complexity" />
|
||||||
@@ -127,7 +126,6 @@
|
|||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/vincentlanglet/twig-cs-fixer" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/vincentlanglet/twig-cs-fixer" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/webmozart/assert" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/webmozart/assert" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/egulias/email-validator" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/egulias/email-validator" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/masterminds/html5" />
|
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/browser-kit" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/browser-kit" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/dom-crawler" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/dom-crawler" />
|
||||||
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/mailer" />
|
<excludeFolder url="file://$MODULE_DIR$/vendor/symfony/mailer" />
|
||||||
|
|||||||
3
.idea/php.xml
generated
3
.idea/php.xml
generated
@@ -70,7 +70,6 @@
|
|||||||
<path value="$PROJECT_DIR$/vendor/markbaker/complex" />
|
<path value="$PROJECT_DIR$/vendor/markbaker/complex" />
|
||||||
<path value="$PROJECT_DIR$/vendor/markbaker/matrix" />
|
<path value="$PROJECT_DIR$/vendor/markbaker/matrix" />
|
||||||
<path value="$PROJECT_DIR$/vendor/martin-georgiev/postgresql-for-doctrine" />
|
<path value="$PROJECT_DIR$/vendor/martin-georgiev/postgresql-for-doctrine" />
|
||||||
<path value="$PROJECT_DIR$/vendor/masterminds/html5" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/myclabs/deep-copy" />
|
<path value="$PROJECT_DIR$/vendor/myclabs/deep-copy" />
|
||||||
<path value="$PROJECT_DIR$/vendor/nikic/php-parser" />
|
<path value="$PROJECT_DIR$/vendor/nikic/php-parser" />
|
||||||
<path value="$PROJECT_DIR$/vendor/phar-io/manifest" />
|
<path value="$PROJECT_DIR$/vendor/phar-io/manifest" />
|
||||||
@@ -108,7 +107,6 @@
|
|||||||
<path value="$PROJECT_DIR$/vendor/react/socket" />
|
<path value="$PROJECT_DIR$/vendor/react/socket" />
|
||||||
<path value="$PROJECT_DIR$/vendor/react/stream" />
|
<path value="$PROJECT_DIR$/vendor/react/stream" />
|
||||||
<path value="$PROJECT_DIR$/vendor/rector/rector" />
|
<path value="$PROJECT_DIR$/vendor/rector/rector" />
|
||||||
<path value="$PROJECT_DIR$/vendor/runtime/frankenphp-symfony" />
|
|
||||||
<path value="$PROJECT_DIR$/vendor/sebastian/cli-parser" />
|
<path value="$PROJECT_DIR$/vendor/sebastian/cli-parser" />
|
||||||
<path value="$PROJECT_DIR$/vendor/sebastian/comparator" />
|
<path value="$PROJECT_DIR$/vendor/sebastian/comparator" />
|
||||||
<path value="$PROJECT_DIR$/vendor/sebastian/complexity" />
|
<path value="$PROJECT_DIR$/vendor/sebastian/complexity" />
|
||||||
@@ -203,6 +201,7 @@
|
|||||||
<path value="$PROJECT_DIR$/vendor/twig/twig" />
|
<path value="$PROJECT_DIR$/vendor/twig/twig" />
|
||||||
<path value="$PROJECT_DIR$/vendor/vincentlanglet/twig-cs-fixer" />
|
<path value="$PROJECT_DIR$/vendor/vincentlanglet/twig-cs-fixer" />
|
||||||
<path value="$PROJECT_DIR$/vendor/webmozart/assert" />
|
<path value="$PROJECT_DIR$/vendor/webmozart/assert" />
|
||||||
|
<path value="$PROJECT_DIR$/vendor/symfony/polyfill-php85" />
|
||||||
</include_path>
|
</include_path>
|
||||||
</component>
|
</component>
|
||||||
<component name="PhpInterpreters">
|
<component name="PhpInterpreters">
|
||||||
|
|||||||
@@ -87,12 +87,10 @@ FROM frankenphp_base AS frankenphp_prod
|
|||||||
RUN rm -rf /var/lib/apt/lists/*
|
RUN rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
ENV APP_ENV=prod
|
ENV APP_ENV=prod
|
||||||
ENV FRANKENPHP_CONFIG="import worker.Caddyfile"
|
|
||||||
|
|
||||||
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
|
||||||
|
|
||||||
COPY --link frankenphp/conf.d/20-app.prod.ini $PHP_INI_DIR/app.conf.d/
|
COPY --link frankenphp/conf.d/20-app.prod.ini $PHP_INI_DIR/app.conf.d/
|
||||||
COPY --link frankenphp/worker.Caddyfile /etc/caddy/worker.Caddyfile
|
|
||||||
|
|
||||||
# prevent the reinstallation of vendors at every changes in the source code
|
# prevent the reinstallation of vendors at every changes in the source code
|
||||||
COPY --link composer.* symfony.* ./
|
COPY --link composer.* symfony.* ./
|
||||||
|
|||||||
6
Justfile
6
Justfile
@@ -45,3 +45,9 @@ reload-tests:
|
|||||||
@docker compose exec php bin/console --env=test doctrine:database:create
|
@docker compose exec php bin/console --env=test doctrine:database:create
|
||||||
@docker compose exec php bin/console --env=test doctrine:migrations:migrate -n
|
@docker compose exec php bin/console --env=test doctrine:migrations:migrate -n
|
||||||
@docker compose exec php bin/console --env=test doctrine:fixtures:load -n --group=test
|
@docker compose exec php bin/console --env=test doctrine:fixtures:load -n --group=test
|
||||||
|
|
||||||
|
trust-cert:
|
||||||
|
sudo security add-trusted-cer -d \
|
||||||
|
-r trustRoot \
|
||||||
|
-k "$HOME/Library/Keychains/login.keychain" \
|
||||||
|
./frankenphp/data/caddy/pki/authorities/local/root.crt
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
const nameCheck = /^[-_a-zA-Z0-9]{4,22}$/;
|
const nameCheck = /^[-_a-zA-Z0-9]{4,22}$/;
|
||||||
const tokenCheck = /^[-_\/+a-zA-Z0-9]{24,}$/;
|
const tokenCheck = /^[-_/+a-zA-Z0-9]{24,}$/;
|
||||||
|
|
||||||
// Generate and double-submit a CSRF token in a form field and a cookie, as defined by Symfony's SameOriginCsrfTokenManager
|
// Generate and double-submit a CSRF token in a form field and a cookie, as defined by Symfony's SameOriginCsrfTokenManager
|
||||||
|
// Use `form.requestSubmit()` to ensure that the submit event is triggered. Using `form.submit()` will not trigger the event
|
||||||
|
// and thus this event-listener will not be executed.
|
||||||
document.addEventListener('submit', function (event) {
|
document.addEventListener('submit', function (event) {
|
||||||
generateCsrfToken(event.target);
|
generateCsrfToken(event.target);
|
||||||
}, true);
|
}, true);
|
||||||
@@ -33,8 +35,8 @@ export function generateCsrfToken (formElement) {
|
|||||||
if (!csrfCookie && nameCheck.test(csrfToken)) {
|
if (!csrfCookie && nameCheck.test(csrfToken)) {
|
||||||
csrfField.setAttribute('data-csrf-protection-cookie-value', csrfCookie = csrfToken);
|
csrfField.setAttribute('data-csrf-protection-cookie-value', csrfCookie = csrfToken);
|
||||||
csrfField.defaultValue = csrfToken = btoa(String.fromCharCode.apply(null, (window.crypto || window.msCrypto).getRandomValues(new Uint8Array(18))));
|
csrfField.defaultValue = csrfToken = btoa(String.fromCharCode.apply(null, (window.crypto || window.msCrypto).getRandomValues(new Uint8Array(18))));
|
||||||
csrfField.dispatchEvent(new Event('change', { bubbles: true }));
|
|
||||||
}
|
}
|
||||||
|
csrfField.dispatchEvent(new Event('change', { bubbles: true }));
|
||||||
|
|
||||||
if (csrfCookie && tokenCheck.test(csrfToken)) {
|
if (csrfCookie && tokenCheck.test(csrfToken)) {
|
||||||
const cookie = csrfCookie + '_' + csrfToken + '=' + csrfCookie + '; path=/; samesite=strict';
|
const cookie = csrfCookie + '_' + csrfToken + '=' + csrfCookie + '; path=/; samesite=strict';
|
||||||
|
|||||||
2
assets/stimulus_bootstrap.js
Normal file
2
assets/stimulus_bootstrap.js
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
// register any custom, 3rd party controllers here
|
||||||
|
// app.register('some_controller_name', SomeImportedController);
|
||||||
@@ -12,35 +12,34 @@
|
|||||||
"doctrine/dbal": "^4.4.1",
|
"doctrine/dbal": "^4.4.1",
|
||||||
"doctrine/doctrine-bundle": "^3.2.2",
|
"doctrine/doctrine-bundle": "^3.2.2",
|
||||||
"doctrine/doctrine-migrations-bundle": "^3.7.0",
|
"doctrine/doctrine-migrations-bundle": "^3.7.0",
|
||||||
"doctrine/orm": "^3.6.1",
|
"doctrine/orm": "^3.6.2",
|
||||||
"martin-georgiev/postgresql-for-doctrine": "^3.7.0",
|
"martin-georgiev/postgresql-for-doctrine": "^3.7.0",
|
||||||
"phpdocumentor/reflection-docblock": "^5.6.6",
|
"phpdocumentor/reflection-docblock": "^5.6.6",
|
||||||
"phpoffice/phpspreadsheet": "^5.4",
|
"phpoffice/phpspreadsheet": "^5.4",
|
||||||
"phpstan/phpdoc-parser": "^2.3.2",
|
"phpstan/phpdoc-parser": "^2.3.2",
|
||||||
"runtime/frankenphp-symfony": "^0.2.0",
|
|
||||||
"sentry/sentry-symfony": "^5.8.3",
|
"sentry/sentry-symfony": "^5.8.3",
|
||||||
"stof/doctrine-extensions-bundle": "^1.15.3",
|
"stof/doctrine-extensions-bundle": "^1.15.3",
|
||||||
"symfony/asset": "7.4.*",
|
"symfony/asset": "8.0.*",
|
||||||
"symfony/asset-mapper": "7.4.*",
|
"symfony/asset-mapper": "8.0.*",
|
||||||
"symfony/brevo-mailer": "7.4.*",
|
"symfony/brevo-mailer": "8.0.*",
|
||||||
"symfony/console": "7.4.*",
|
"symfony/console": "8.0.*",
|
||||||
"symfony/dotenv": "7.4.*",
|
"symfony/dotenv": "8.0.*",
|
||||||
"symfony/flex": "^2.10.0",
|
"symfony/flex": "^2.10.0",
|
||||||
"symfony/form": "7.4.*",
|
"symfony/form": "8.0.*",
|
||||||
"symfony/framework-bundle": "7.4.*",
|
"symfony/framework-bundle": "8.0.*",
|
||||||
"symfony/mailer": "7.4.*",
|
"symfony/mailer": "8.0.*",
|
||||||
"symfony/property-access": "7.4.*",
|
"symfony/property-access": "8.0.*",
|
||||||
"symfony/property-info": "7.4.*",
|
"symfony/property-info": "8.0.*",
|
||||||
"symfony/runtime": "7.4.*",
|
"symfony/runtime": "8.0.*",
|
||||||
"symfony/security-bundle": "7.4.*",
|
"symfony/security-bundle": "8.0.*",
|
||||||
"symfony/security-csrf": "7.4.*",
|
"symfony/security-csrf": "8.0.*",
|
||||||
"symfony/serializer": "7.4.*",
|
"symfony/serializer": "8.0.*",
|
||||||
"symfony/translation": "7.4.*",
|
"symfony/translation": "8.0.*",
|
||||||
"symfony/twig-bundle": "7.4.*",
|
"symfony/twig-bundle": "8.0.*",
|
||||||
"symfony/uid": "7.4.*",
|
"symfony/uid": "8.0.*",
|
||||||
"symfony/ux-turbo": "^2.32.0",
|
"symfony/ux-turbo": "^2.32.0",
|
||||||
"symfony/validator": "7.4.*",
|
"symfony/validator": "8.0.*",
|
||||||
"symfony/yaml": "7.4.*",
|
"symfony/yaml": "8.0.*",
|
||||||
"symfonycasts/sass-bundle": "^0.8.3",
|
"symfonycasts/sass-bundle": "^0.8.3",
|
||||||
"symfonycasts/verify-email-bundle": "^1.18.0",
|
"symfonycasts/verify-email-bundle": "^1.18.0",
|
||||||
"thecodingmachine/safe": "^3.3.0",
|
"thecodingmachine/safe": "^3.3.0",
|
||||||
@@ -57,15 +56,15 @@
|
|||||||
"phpstan/phpstan-doctrine": "^2.0.14",
|
"phpstan/phpstan-doctrine": "^2.0.14",
|
||||||
"phpstan/phpstan-phpunit": "^2.0.12",
|
"phpstan/phpstan-phpunit": "^2.0.12",
|
||||||
"phpstan/phpstan-symfony": "^2.0.12",
|
"phpstan/phpstan-symfony": "^2.0.12",
|
||||||
"phpunit/phpunit": "^12.5.7",
|
"phpunit/phpunit": "^12.5.9",
|
||||||
"rector/rector": "^2.3.4",
|
"rector/rector": "^2.3.4",
|
||||||
"roave/security-advisories": "dev-latest",
|
"roave/security-advisories": "dev-latest",
|
||||||
"symfony/browser-kit": "7.4.*",
|
"symfony/browser-kit": "8.0.*",
|
||||||
"symfony/css-selector": "7.4.*",
|
"symfony/css-selector": "8.0.*",
|
||||||
"symfony/maker-bundle": "^1.65.1",
|
"symfony/maker-bundle": "^1.65.1",
|
||||||
"symfony/phpunit-bridge": "7.4.*",
|
"symfony/phpunit-bridge": "8.0.*",
|
||||||
"symfony/stopwatch": "7.4.*",
|
"symfony/stopwatch": "8.0.*",
|
||||||
"symfony/web-profiler-bundle": "7.4.*",
|
"symfony/web-profiler-bundle": "8.0.*",
|
||||||
"thecodingmachine/phpstan-safe-rule": "^1.4.3",
|
"thecodingmachine/phpstan-safe-rule": "^1.4.3",
|
||||||
"vincentlanglet/twig-cs-fixer": "^3.13.0"
|
"vincentlanglet/twig-cs-fixer": "^3.13.0"
|
||||||
},
|
},
|
||||||
@@ -122,7 +121,7 @@
|
|||||||
"extra": {
|
"extra": {
|
||||||
"symfony": {
|
"symfony": {
|
||||||
"allow-contrib": false,
|
"allow-contrib": false,
|
||||||
"require": "7.4.*",
|
"require": "8.0.*",
|
||||||
"docker": true
|
"docker": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
1991
composer.lock
generated
1991
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -17,7 +17,6 @@ doctrine:
|
|||||||
|
|
||||||
|
|
||||||
orm:
|
orm:
|
||||||
enable_native_lazy_objects: true
|
|
||||||
validate_xml_mapping: true
|
validate_xml_mapping: true
|
||||||
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
|
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
|
||||||
identity_generation_preferences:
|
identity_generation_preferences:
|
||||||
@@ -30,8 +29,6 @@ doctrine:
|
|||||||
dir: '%kernel.project_dir%/src/Entity'
|
dir: '%kernel.project_dir%/src/Entity'
|
||||||
prefix: 'Tvdt\Entity'
|
prefix: 'Tvdt\Entity'
|
||||||
alias: Tvdt
|
alias: Tvdt
|
||||||
controller_resolver:
|
|
||||||
auto_mapping: false
|
|
||||||
|
|
||||||
when@test:
|
when@test:
|
||||||
doctrine:
|
doctrine:
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
framework:
|
framework:
|
||||||
router:
|
router:
|
||||||
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
|
# Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
|
||||||
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
|
# See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
|
||||||
#default_uri: http://localhost
|
default_uri: '%env(DEFAULT_URI)%'
|
||||||
|
|
||||||
when@prod:
|
when@prod:
|
||||||
framework:
|
framework:
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ security:
|
|||||||
# 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'
|
||||||
|
|
||||||
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
|
# https://symfony.com/doc/current/security.html#loading-the-user-the-user-provider
|
||||||
providers:
|
providers:
|
||||||
# used to reload user from session & other features (e.g. switch_user)
|
# used to reload user from session & other features (e.g. switch_user)
|
||||||
@@ -12,7 +13,8 @@ security:
|
|||||||
# used to reload user from session & other features (e.g. switch_user)
|
# used to reload user from session & other features (e.g. switch_user)
|
||||||
firewalls:
|
firewalls:
|
||||||
dev:
|
dev:
|
||||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
# Ensure dev tools and static assets are always allowed
|
||||||
|
pattern: ^/(_profiler|_wdt|assets|build)/
|
||||||
security: false
|
security: false
|
||||||
main:
|
main:
|
||||||
lazy: true
|
lazy: true
|
||||||
@@ -33,8 +35,6 @@ security:
|
|||||||
# https://symfony.com/doc/current/security/impersonating_user.html
|
# https://symfony.com/doc/current/security/impersonating_user.html
|
||||||
# switch_user: true
|
# switch_user: true
|
||||||
|
|
||||||
# Easy way to control access for large sections of your site
|
|
||||||
# Note: Only the *first* access control that matches will be used
|
|
||||||
access_control:
|
access_control:
|
||||||
- { path: ^/admin, roles: ROLE_ADMIN }
|
- { path: ^/admin, roles: ROLE_ADMIN }
|
||||||
- { path: ^/backoffice, roles: ROLE_USER }
|
- { path: ^/backoffice, roles: ROLE_USER }
|
||||||
@@ -42,10 +42,8 @@ security:
|
|||||||
when@test:
|
when@test:
|
||||||
security:
|
security:
|
||||||
password_hashers:
|
password_hashers:
|
||||||
# By default, password hashers are resource intensive and take time. This is
|
# Password hashers are resource-intensive by design to ensure security.
|
||||||
# important to generate secure password hashes. In tests however, secure hashes
|
# In tests, it's safe to reduce their cost to improve performance.
|
||||||
# are not important, waste resources and increase test times. The following
|
|
||||||
# reduces the work factor to the lowest possible values.
|
|
||||||
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
|
Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface:
|
||||||
algorithm: auto
|
algorithm: auto
|
||||||
cost: 4 # Lowest possible value for bcrypt
|
cost: 4 # Lowest possible value for bcrypt
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ when@prod:
|
|||||||
- 'Symfony\Component\Debug\Exception\FatalErrorException'
|
- 'Symfony\Component\Debug\Exception\FatalErrorException'
|
||||||
#
|
#
|
||||||
# # If you are using Monolog, you also need this additional configuration to log the errors correctly:
|
# # If you are using Monolog, you also need this additional configuration to log the errors correctly:
|
||||||
# # https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration
|
# # https://docs.sentry.io/platforms/php/guides/symfony/integrations/monolog/
|
||||||
# register_error_listener: false
|
# register_error_listener: false
|
||||||
# register_error_handler: false
|
# register_error_handler: false
|
||||||
#
|
#
|
||||||
@@ -19,18 +19,21 @@ when@prod:
|
|||||||
# # Use this only if you don't want to use structured logging and instead receive
|
# # Use this only if you don't want to use structured logging and instead receive
|
||||||
# # certain log levels as errors.
|
# # certain log levels as errors.
|
||||||
# sentry:
|
# sentry:
|
||||||
# type: sentry
|
# type: service
|
||||||
# level: !php/const Monolog\Logger::ERROR
|
# id: Sentry\Monolog\Handler
|
||||||
# hub_id: Sentry\State\HubInterface
|
|
||||||
# fill_extra_context: true # Enables sending monolog context to Sentry
|
|
||||||
# process_psr_3_messages: false # Disables the resolution of PSR-3 placeholders
|
|
||||||
#
|
#
|
||||||
# # Use this for structured log integration
|
# # Use this for structured log integration
|
||||||
# sentry_logs:
|
# sentry_logs:
|
||||||
# type: service
|
# type: service
|
||||||
# id: Sentry\SentryBundle\Monolog\LogsHandler
|
# id: Sentry\SentryBundle\Monolog\LogsHandler
|
||||||
#
|
#
|
||||||
|
# # Enable one of the two services below, depending on your choice above
|
||||||
# services:
|
# services:
|
||||||
|
# Sentry\Monolog\Handler:
|
||||||
|
# arguments:
|
||||||
|
# $hub: '@Sentry\State\HubInterface'
|
||||||
|
# $level: !php/const Monolog\Logger::ERROR
|
||||||
|
# $fillExtraContext: true # Enables sending monolog context to Sentry
|
||||||
# Sentry\SentryBundle\Monolog\LogsHandler:
|
# Sentry\SentryBundle\Monolog\LogsHandler:
|
||||||
# arguments:
|
# arguments:
|
||||||
# - !php/const Monolog\Logger::INFO
|
# - !php/const Monolog\Logger::INFO
|
||||||
|
|||||||
17
config/reference.php
generated
17
config/reference.php
generated
@@ -188,7 +188,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* only_exceptions?: bool|Param, // Default: false
|
* only_exceptions?: bool|Param, // Default: false
|
||||||
* only_main_requests?: bool|Param, // Default: false
|
* only_main_requests?: bool|Param, // Default: false
|
||||||
* dsn?: scalar|Param|null, // Default: "file:%kernel.cache_dir%/profiler"
|
* dsn?: scalar|Param|null, // Default: "file:%kernel.cache_dir%/profiler"
|
||||||
* collect_serializer_data?: bool|Param, // Enables the serializer data collector and profiler panel. // Default: false
|
* collect_serializer_data?: true|Param, // Default: true
|
||||||
* },
|
* },
|
||||||
* workflows?: bool|array{
|
* workflows?: bool|array{
|
||||||
* enabled?: bool|Param, // Default: false
|
* enabled?: bool|Param, // Default: false
|
||||||
@@ -232,7 +232,6 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* enabled?: bool|Param, // Default: false
|
* enabled?: bool|Param, // Default: false
|
||||||
* resource: scalar|Param|null,
|
* resource: scalar|Param|null,
|
||||||
* type?: scalar|Param|null,
|
* type?: scalar|Param|null,
|
||||||
* cache_dir?: scalar|Param|null, // Deprecated: Setting the "framework.router.cache_dir.cache_dir" configuration option is deprecated. It will be removed in version 8.0. // Default: "%kernel.build_dir%"
|
|
||||||
* default_uri?: scalar|Param|null, // The default URI used to generate URLs in a non-HTTP context. // Default: null
|
* default_uri?: scalar|Param|null, // The default URI used to generate URLs in a non-HTTP context. // Default: null
|
||||||
* http_port?: scalar|Param|null, // Default: 80
|
* http_port?: scalar|Param|null, // Default: 80
|
||||||
* https_port?: scalar|Param|null, // Default: 443
|
* https_port?: scalar|Param|null, // Default: 443
|
||||||
@@ -256,8 +255,6 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* gc_maxlifetime?: scalar|Param|null,
|
* gc_maxlifetime?: scalar|Param|null,
|
||||||
* save_path?: scalar|Param|null, // Defaults to "%kernel.cache_dir%/sessions" if the "handler_id" option is not null.
|
* save_path?: scalar|Param|null, // Defaults to "%kernel.cache_dir%/sessions" if the "handler_id" option is not null.
|
||||||
* metadata_update_threshold?: int|Param, // Seconds to wait between 2 session metadata updates. // Default: 0
|
* metadata_update_threshold?: int|Param, // Seconds to wait between 2 session metadata updates. // Default: 0
|
||||||
* sid_length?: int|Param, // Deprecated: Setting the "framework.session.sid_length.sid_length" configuration option is deprecated. It will be removed in version 8.0. No alternative is provided as PHP 8.4 has deprecated the related option.
|
|
||||||
* sid_bits_per_character?: int|Param, // Deprecated: Setting the "framework.session.sid_bits_per_character.sid_bits_per_character" configuration option is deprecated. It will be removed in version 8.0. No alternative is provided as PHP 8.4 has deprecated the related option.
|
|
||||||
* },
|
* },
|
||||||
* request?: bool|array{ // Request configuration
|
* request?: bool|array{ // Request configuration
|
||||||
* enabled?: bool|Param, // Default: false
|
* enabled?: bool|Param, // Default: false
|
||||||
@@ -331,11 +328,10 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* },
|
* },
|
||||||
* validation?: bool|array{ // Validation configuration
|
* validation?: bool|array{ // Validation configuration
|
||||||
* enabled?: bool|Param, // Default: true
|
* enabled?: bool|Param, // Default: true
|
||||||
* cache?: scalar|Param|null, // Deprecated: Setting the "framework.validation.cache.cache" configuration option is deprecated. It will be removed in version 8.0.
|
|
||||||
* enable_attributes?: bool|Param, // Default: true
|
* enable_attributes?: bool|Param, // Default: true
|
||||||
* static_method?: list<scalar|Param|null>,
|
* static_method?: list<scalar|Param|null>,
|
||||||
* translation_domain?: scalar|Param|null, // Default: "validators"
|
* translation_domain?: scalar|Param|null, // Default: "validators"
|
||||||
* email_validation_mode?: "html5"|"html5-allow-no-tld"|"strict"|"loose"|Param, // Default: "html5"
|
* email_validation_mode?: "html5"|"html5-allow-no-tld"|"strict"|Param, // Default: "html5"
|
||||||
* mapping?: array{
|
* mapping?: array{
|
||||||
* paths?: list<scalar|Param|null>,
|
* paths?: list<scalar|Param|null>,
|
||||||
* },
|
* },
|
||||||
@@ -348,9 +344,6 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* services?: list<scalar|Param|null>,
|
* services?: list<scalar|Param|null>,
|
||||||
* }>,
|
* }>,
|
||||||
* },
|
* },
|
||||||
* annotations?: bool|array{
|
|
||||||
* enabled?: bool|Param, // Default: false
|
|
||||||
* },
|
|
||||||
* serializer?: bool|array{ // Serializer configuration
|
* serializer?: bool|array{ // Serializer configuration
|
||||||
* enabled?: bool|Param, // Default: true
|
* enabled?: bool|Param, // Default: true
|
||||||
* enable_attributes?: bool|Param, // Default: true
|
* enable_attributes?: bool|Param, // Default: true
|
||||||
@@ -382,7 +375,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* },
|
* },
|
||||||
* property_info?: bool|array{ // Property info configuration
|
* property_info?: bool|array{ // Property info configuration
|
||||||
* enabled?: bool|Param, // Default: true
|
* enabled?: bool|Param, // Default: true
|
||||||
* with_constructor_extractor?: bool|Param, // Registers the constructor extractor.
|
* with_constructor_extractor?: bool|Param, // Registers the constructor extractor. // Default: true
|
||||||
* },
|
* },
|
||||||
* cache?: array{ // Cache configuration
|
* cache?: array{ // Cache configuration
|
||||||
* prefix_seed?: scalar|Param|null, // Used to namespace cache keys when using several apps with the same shared backend. // Default: "_%kernel.project_dir%.%kernel.container_class%"
|
* prefix_seed?: scalar|Param|null, // Used to namespace cache keys when using several apps with the same shared backend. // Default: "_%kernel.project_dir%.%kernel.container_class%"
|
||||||
@@ -912,7 +905,6 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* }>,
|
* }>,
|
||||||
* autoescape_service?: scalar|Param|null, // Default: null
|
* autoescape_service?: scalar|Param|null, // Default: null
|
||||||
* autoescape_service_method?: scalar|Param|null, // Default: null
|
* autoescape_service_method?: scalar|Param|null, // Default: null
|
||||||
* base_template_class?: scalar|Param|null, // Deprecated: The child node "base_template_class" at path "twig.base_template_class" is deprecated.
|
|
||||||
* cache?: scalar|Param|null, // Default: true
|
* cache?: scalar|Param|null, // Default: true
|
||||||
* charset?: scalar|Param|null, // Default: "%kernel.charset%"
|
* charset?: scalar|Param|null, // Default: "%kernel.charset%"
|
||||||
* debug?: bool|Param, // Default: "%kernel.debug%"
|
* debug?: bool|Param, // Default: "%kernel.debug%"
|
||||||
@@ -939,7 +931,6 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* @psalm-type SecurityConfig = array{
|
* @psalm-type SecurityConfig = array{
|
||||||
* access_denied_url?: scalar|Param|null, // Default: null
|
* access_denied_url?: scalar|Param|null, // Default: null
|
||||||
* session_fixation_strategy?: "none"|"migrate"|"invalidate"|Param, // Default: "migrate"
|
* session_fixation_strategy?: "none"|"migrate"|"invalidate"|Param, // Default: "migrate"
|
||||||
* hide_user_not_found?: bool|Param, // Deprecated: The "hide_user_not_found" option is deprecated and will be removed in 8.0. Use the "expose_security_errors" option instead.
|
|
||||||
* expose_security_errors?: \Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::None|\Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::AccountStatus|\Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::All|Param, // Default: "none"
|
* expose_security_errors?: \Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::None|\Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::AccountStatus|\Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::All|Param, // Default: "none"
|
||||||
* erase_credentials?: bool|Param, // Default: true
|
* erase_credentials?: bool|Param, // Default: true
|
||||||
* access_decision_manager?: array{
|
* access_decision_manager?: array{
|
||||||
@@ -1175,9 +1166,7 @@ use Symfony\Component\Config\Loader\ParamConfigurator as Param;
|
|||||||
* claim?: scalar|Param|null, // Claim which contains the user identifier (e.g.: sub, email..). // Default: "sub"
|
* claim?: scalar|Param|null, // Claim which contains the user identifier (e.g.: sub, email..). // Default: "sub"
|
||||||
* audience: scalar|Param|null, // Audience set in the token, for validation purpose.
|
* audience: scalar|Param|null, // Audience set in the token, for validation purpose.
|
||||||
* issuers: list<scalar|Param|null>,
|
* issuers: list<scalar|Param|null>,
|
||||||
* algorithm?: array<mixed>,
|
|
||||||
* algorithms: list<scalar|Param|null>,
|
* algorithms: list<scalar|Param|null>,
|
||||||
* key?: scalar|Param|null, // Deprecated: The "key" option is deprecated and will be removed in 8.0. Use the "keyset" option instead. // JSON-encoded JWK used to sign the token (must contain a "kty" key).
|
|
||||||
* keyset?: scalar|Param|null, // JSON-encoded JWKSet used to sign the token (must contain a list of valid public keys).
|
* keyset?: scalar|Param|null, // JSON-encoded JWKSet used to sign the token (must contain a list of valid public keys).
|
||||||
* encryption?: bool|array{
|
* encryption?: bool|array{
|
||||||
* enabled?: bool|Param, // Default: false
|
* enabled?: bool|Param, // Default: false
|
||||||
|
|||||||
@@ -1,5 +1,11 @@
|
|||||||
|
# yaml-language-server: $schema=../vendor/symfony/routing/Loader/schema/routing.schema.json
|
||||||
|
|
||||||
|
# This file is the entry point to configure the routes of your app.
|
||||||
|
# Methods with the #[Route] attribute are automatically imported.
|
||||||
|
# See also https://symfony.com/doc/current/routing.html
|
||||||
|
|
||||||
|
# To list all registered routes, run the following command:
|
||||||
|
# bin/console debug:router
|
||||||
|
|
||||||
controllers:
|
controllers:
|
||||||
resource:
|
resource: routing.controllers
|
||||||
path: ../src/Controller/
|
|
||||||
namespace: Tvdt\Controller
|
|
||||||
type: attribute
|
|
||||||
|
|||||||
@@ -1,5 +1,8 @@
|
|||||||
|
# yaml-language-server: $schema=../vendor/symfony/dependency-injection/Loader/schema/services.schema.json
|
||||||
|
|
||||||
# This file is the entry point to configure your own services.
|
# This file is the entry point to configure your own services.
|
||||||
# Files in the packages/ subdirectory configure your dependencies.
|
# Files in the packages/ subdirectory configure your dependencies.
|
||||||
|
# See also https://symfony.com/doc/current/service_container/import.html
|
||||||
|
|
||||||
# Put parameters here that don't need to change on each machine where the app is deployed
|
# Put parameters here that don't need to change on each machine where the app is deployed
|
||||||
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
|
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
worker {
|
|
||||||
file ./public/index.php
|
|
||||||
env APP_RUNTIME Runtime\FrankenPhpSymfony\Runtime
|
|
||||||
}
|
|
||||||
46
symfony.lock
46
symfony.lock
@@ -99,12 +99,12 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"sentry/sentry-symfony": {
|
"sentry/sentry-symfony": {
|
||||||
"version": "5.6",
|
"version": "5.8",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
"repo": "github.com/symfony/recipes-contrib",
|
"repo": "github.com/symfony/recipes-contrib",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"version": "5.0",
|
"version": "5.0",
|
||||||
"ref": "b6cb4b34429dadecd7187852123be19d628fa37a"
|
"ref": "12f504985eb24e3b20a9e41e0ec7e398798d18f0"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"config/packages/sentry.yaml"
|
"config/packages/sentry.yaml"
|
||||||
@@ -184,14 +184,15 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"symfony/framework-bundle": {
|
"symfony/framework-bundle": {
|
||||||
"version": "7.2",
|
"version": "8.0",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
"repo": "github.com/symfony/recipes",
|
"repo": "github.com/symfony/recipes",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"version": "7.2",
|
"version": "7.4",
|
||||||
"ref": "87bcf6f7c55201f345d8895deda46d2adbdbaa89"
|
"ref": "09f6e081c763a206802674ce0cb34a022f0ffc6d"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
|
".editorconfig",
|
||||||
"config/packages/cache.yaml",
|
"config/packages/cache.yaml",
|
||||||
"config/packages/framework.yaml",
|
"config/packages/framework.yaml",
|
||||||
"config/preload.php",
|
"config/preload.php",
|
||||||
@@ -224,19 +225,14 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"symfony/phpunit-bridge": {
|
"symfony/phpunit-bridge": {
|
||||||
"version": "7.2",
|
"version": "8.0",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
"repo": "github.com/symfony/recipes",
|
"repo": "github.com/symfony/recipes",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"version": "6.3",
|
"version": "7.3",
|
||||||
"ref": "a411a0480041243d97382cac7984f7dce7813c08"
|
"ref": "dc13fec96bd527bd399c3c01f0aab915c67fd544"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": []
|
||||||
".env.test",
|
|
||||||
"bin/phpunit",
|
|
||||||
"phpunit.xml.dist",
|
|
||||||
"tests/bootstrap.php"
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"symfony/property-info": {
|
"symfony/property-info": {
|
||||||
"version": "7.3",
|
"version": "7.3",
|
||||||
@@ -251,12 +247,12 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"symfony/routing": {
|
"symfony/routing": {
|
||||||
"version": "7.2",
|
"version": "8.0",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
"repo": "github.com/symfony/recipes",
|
"repo": "github.com/symfony/recipes",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"version": "7.0",
|
"version": "7.4",
|
||||||
"ref": "21b72649d5622d8f7da329ffb5afb232a023619d"
|
"ref": "bc94c4fd86f393f3ab3947c18b830ea343e51ded"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"config/packages/routing.yaml",
|
"config/packages/routing.yaml",
|
||||||
@@ -264,12 +260,12 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"symfony/security-bundle": {
|
"symfony/security-bundle": {
|
||||||
"version": "7.2",
|
"version": "8.0",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
"repo": "github.com/symfony/recipes",
|
"repo": "github.com/symfony/recipes",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"version": "6.4",
|
"version": "7.4",
|
||||||
"ref": "2ae08430db28c8eb4476605894296c82a642028f"
|
"ref": "c42fee7802181cdd50f61b8622715829f5d2335c"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"config/packages/security.yaml",
|
"config/packages/security.yaml",
|
||||||
@@ -277,18 +273,18 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"symfony/stimulus-bundle": {
|
"symfony/stimulus-bundle": {
|
||||||
"version": "2.26",
|
"version": "2.32",
|
||||||
"recipe": {
|
"recipe": {
|
||||||
"repo": "github.com/symfony/recipes",
|
"repo": "github.com/symfony/recipes",
|
||||||
"branch": "main",
|
"branch": "main",
|
||||||
"version": "2.20",
|
"version": "2.24",
|
||||||
"ref": "3acc494b566816514a6873a89023a35440b6386d"
|
"ref": "3357f2fa6627b93658d8e13baa416b2a94a50c5f"
|
||||||
},
|
},
|
||||||
"files": [
|
"files": [
|
||||||
"assets/bootstrap.js",
|
|
||||||
"assets/controllers.json",
|
"assets/controllers.json",
|
||||||
"assets/controllers/csrf_protection_controller.js",
|
"assets/controllers/csrf_protection_controller.js",
|
||||||
"assets/controllers/hello_controller.js"
|
"assets/controllers/hello_controller.js",
|
||||||
|
"assets/stimulus_bootstrap.js"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"symfony/translation": {
|
"symfony/translation": {
|
||||||
|
|||||||
Reference in New Issue
Block a user