Last commit july 5th

This commit is contained in:
2024-07-05 13:46:23 +02:00
parent dad0d86e8c
commit b0e4dfbb76
24982 changed files with 2621219 additions and 413 deletions

View File

@@ -14,4 +14,8 @@ return [
Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true],
Symfony\Bundle\MakerBundle\MakerBundle::class => ['dev' => true],
EasyCorp\Bundle\EasyAdminBundle\EasyAdminBundle::class => ['all' => true],
Doctrine\Bundle\FixturesBundle\DoctrineFixturesBundle::class => ['dev' => true, 'test' => true],
Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
Nelmio\CorsBundle\NelmioCorsBundle::class => ['all' => true],
ApiPlatform\Symfony\Bundle\ApiPlatformBundle::class => ['all' => true],
];

View File

@@ -0,0 +1,18 @@
api_platform:
title: Hello API Platform
version: 1.0.0
formats:
jsonld: ['application/ld+json']
docs_formats:
jsonld: ['application/ld+json']
jsonopenapi: ['application/vnd.openapi+json']
html: ['text/html']
defaults:
stateless: true
cache_headers:
vary: ['Content-Type', 'Authorization', 'Origin']
extra_properties:
standard_put: true
rfc_7807_compliant_errors: true
keep_legacy_inflector: false
use_symfony_listeners: true

View File

@@ -1,5 +0,0 @@
framework:
asset_mapper:
# The paths to make available to the asset mapper.
paths:
- assets/

View File

@@ -9,11 +9,11 @@ framework:
# 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.
session:
handler_id: '%env(resolve:DATABASE_URL)%'
handler_id: '%env(REDIS_URL)%'
cookie_secure: auto
cookie_samesite: lax
#esi: true
esi: true
#fragments: true
php_errors:
log: true
@@ -23,3 +23,12 @@ when@test:
test: true
session:
storage_factory_id: session.storage.factory.mock_file
when@dev:
framework:
http_cache: false

View File

@@ -1,3 +1,5 @@
framework:
mailer:
dsn: '%env(MAILER_DSN)%'
envelope:
sender: "%admin_email%"

View File

@@ -5,10 +5,7 @@ framework:
transports:
# https://symfony.com/doc/current/messenger.html#transport-configuration
async:
dsn: '%env(MESSENGER_TRANSPORT_DSN)%'
options:
use_notify: true
check_delayed_interval: 60000
dsn: '%env(RABBITMQ_URL)%'
retry_strategy:
max_retries: 3
multiplier: 2
@@ -26,4 +23,4 @@ framework:
Symfony\Component\Notifier\Message\SmsMessage: async
# Route your messages to the transports
# 'App\Message\YourMessage': async
App\Message\CommentMessage: async

View File

@@ -0,0 +1,10 @@
nelmio_cors:
defaults:
origin_regex: true
allow_origin: ['%env(CORS_ALLOW_ORIGIN)%']
allow_methods: ['GET', 'OPTIONS', 'POST', 'PUT', 'PATCH', 'DELETE']
allow_headers: ['Content-Type', 'Authorization']
expose_headers: ['Link']
max_age: 3600
paths:
'^/': null

View File

@@ -1,6 +1,7 @@
framework:
notifier:
chatter_transports:
slack: '%env(SLACK_DSN)%'
texter_transports:
channel_policy:
# use chat/slack, chat/telegram, sms/twilio or sms/nexmo
@@ -9,4 +10,4 @@ framework:
medium: ['email']
low: ['email']
admin_recipients:
- { email: admin@example.com }
- { email: "%env(string:default:default_admin_email:ADMIN_EMAIL)%" }

View File

@@ -1,5 +1,6 @@
twig:
file_name_pattern: '*.twig'
form_themes: [ 'bootstrap_5_layout.html.twig' ]
when@test:
twig:

View File

@@ -14,4 +14,4 @@ when@test:
intercept_redirects: false
framework:
profiler: { collect: false }
profiler: { collect: false }

View File

@@ -0,0 +1,45 @@
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

View File

@@ -0,0 +1,45 @@
framework:
workflows:
comment:
type: state_machine
audit_trail:
enabled: "%kernel.debug%"
marking_store:
type: 'method'
property: 'state'
supports:
- App\Entity\Comment
initial_marking: submitted
places:
- submitted
- ham
- potential_spam
- spam
- rejected
- ready
- published
transitions:
accept:
from: submitted
to: ham
might_be_spam:
from: submitted
to: potential_spam
reject_spam:
from: submitted
to: spam
publish:
from: potential_spam
to: ready
reject:
from: potential_spam
to: rejected
publish_ham:
from: ham
to: ready
reject_ham:
from: ham
to: rejected
optimize:
from: ready
to: published

View File

@@ -0,0 +1,4 @@
api_platform:
resource: .
type: api_platform
prefix: /api

View File

@@ -0,0 +1,3 @@
<?php // dev.BLACKFIRE_SERVER_ID.6a382d on Fri, 05 Jul 2024 06:47:10 +0000
return "\xAD\x93\xE9\xC5\xD5\xD8\xC4\x3FYv\xB5\xC6\x10E\x9Ea\x22\xFE9\x95\xE8\x2F\xBD\xCE\x21\x80\x29\x21\x95\xB9\x9E\x0B\xC4G\x40\xD7\xC5\x0F\x13\x5Cm\x17\x2F\x10\x90\xC4\x9F.0\xEB\xA9\xE2N\xCB\xA3\x18\xC8\xA0R\xE0\xEF\x3B\xAF\xA8\x02\xF5\xFC\x17\xA0\x81v\x26\xF1\x9A\xBFN\xB8\x5B\x92q\xD5\x2C\xB7\x7D";

View File

@@ -0,0 +1,3 @@
<?php // dev.BLACKFIRE_SERVER_TOKEN.69fd63 on Fri, 05 Jul 2024 06:47:35 +0000
return "\xAC\x02\x06\xE2\x3E\xE3\xE5\x97\xDA\x03\x7CCxf\x3D\xBF\xBF\x0E\xAA\x7C\x23\xBC\xD8x\xF0\xE2\xC1\xA3C\x9B\x29\x09\x0D\xF5\x11\xF4\xC2\x06f\x1A\xFE\xEFN\xF8\xE2\x1CBn\x97~\x21\x18w\xFDQ\xB3ba\xF0\xA9L\x9A\x7F\xDC\xD8\xA9\x20\x1D\x27U\xD8x\x1A\x26\xBF\x04\x86\xC9\x1A\xD8\xFDd\x89\xAE\x5C\x80R\xC3\xD4\xBEF\x60W\xA4.j\x86\x92\x16\xF3-\xB3Be\x9E\x82\x60\x0A\x91\x89\x1C\xAE";

View File

@@ -0,0 +1,3 @@
<?php // dev.SLACK_DSN.b2b579 on Thu, 04 Jul 2024 09:59:28 +0000
return "\x132\xC5\x7FU\x92\xAC\x1D\xCDh\xF7\xD2\x3D\x98\x1D\xDF\xA7\xEDp\xEF\x97\xBE\xF9\x87\x40\x1E\xF4\xBC67\xA5q\xB4\x22\x19\xD66\x9F\xA65\x16\xAC\x0D\x22\x0B\xA1\xF3\x86\x05\x0CB\x9B\x1E\x90\x3B.mF\xF4W\x1F\xBA\xCF\x83E\x3CB\xAFL\x10\xA0\xC5F\xBD\xAF1Z\xB1m\xC8\xA9\x9B4Jq";

View File

@@ -2,4 +2,7 @@
return [
'AKISMET_KEY' => null,
'BLACKFIRE_SERVER_ID' => null,
'BLACKFIRE_SERVER_TOKEN' => null,
'SLACK_DSN' => null,
];

View File

@@ -0,0 +1,3 @@
<?php // prod.BLACKFIRE_SERVER_ID.6a382d on Thu, 04 Jul 2024 14:14:47 +0000
return "\x1B\x0F\x5E\x2C\x21\x14\xAB\x2C\xC2\x82\x25\xBALe\xEA\xAC\xD4\xA6D\xCF~\xF6\xAD\x1F\xD6\x9D\x23w\xFA\xC87D\x20\xF6\xE7\xCBE\xC7w\x81\x92\x15X\x22\x14\x5C\x1E5\x23\xC1\x18\x93\x3CpR\x60l\xC9\x96\xBAF\xEE\x17\x28\xECQ5\x1DI\x1Ai\xE1K\x12\x0D\x92lt\x15\x3F\x96\xD9K\xEE";

View File

@@ -0,0 +1,3 @@
<?php // prod.BLACKFIRE_SERVER_TOKEN.69fd63 on Thu, 04 Jul 2024 14:15:30 +0000
return "X\xBB3\xA7s\xB0\xF2\x01\x95\xB7\x8C\xE2\x09\x17\xED\x25\xB9\xB1\x0F\xB2\x24\x806qd\x5E\x8C\xAA\xC5\xA7\xF7p\xCA\x94\x24\x1E\x12\xFDf\xF2i\x3E\xA2sYeT\xBC\x09\xDAPbD\x96\xA5\x60\xE18\x89\xB9\x0D\xFD\x7BI\x3EvS\x3E\x3B\xFF\x9A\xAE3\x1D\xC2\xD7\x7F\xAC\x8CId\x94\x2B\x81\xF7\xB1\xCF\xEFS\x8F\x11\x60\x1C\xDD\x3B\xDE\x88\x99\xCEo\xCF\x22\xFB1h\xF4\xDB\xF3\x08\x10\xD6\xD2";

View File

@@ -0,0 +1,3 @@
<?php // prod.SLACK_DSN.b2b579 on Thu, 04 Jul 2024 09:59:52 +0000
return "hh\x1B\x164\xA9\x7F\xC0\xF2\x80\xB5\xE0\xA4\x86o\x27RfH\xA6\xEF\x86V\x25\x02\xE3\xFFS\xF6\xF1AF\x5D\x9C\xDA\x9E\xF3\xFA\x21\x8C\xA28\x87\xEE\x1DT\xD0\xDD\x22\xF3\xEA\x9D\xDFW\x82U\xCC\xB5\x7C\x97g\xAC\xA8K\x60\x3E\xE3\xB2\x10Z\xE1\xEA\x0Bt\xF3\xFB\xA6C644\x81A\x97\x5B";

View File

@@ -0,0 +1,7 @@
<?php
return [
'BLACKFIRE_SERVER_ID' => null,
'BLACKFIRE_SERVER_TOKEN' => null,
'SLACK_DSN' => null,
];

View File

@@ -0,0 +1,3 @@
<?php // test.AKISMET_KEY.ca01fb on Wed, 03 Jul 2024 12:19:37 +0000
return "\xE6\xCCY\xBAs\xE4\x8E\x8BP\xD8Ds\xC1\xE4\xDD\xF6.\xDD\x25\xE9\x0B\x2F\xA1\xA2\xCF\x23\xB7\xDC\xFBe\x40w\x0E\xA4\xE7\xA7\xA2\xAD\xB4C\x0A.\x5EFJ\xB5\x3C\xAD2-\xF2\x12\x13\xD8\xB9\xB3\x97\xC6\x7D\x81";

View File

@@ -0,0 +1,4 @@
<?php // test.decrypt.private on Wed, 03 Jul 2024 12:19:37 +0000
// SYMFONY_DECRYPTION_SECRET=ww2tRpi8jFYTQo4R8uWcftDvPuzGdPbv5YMYacbB1JJXmvMhFBggA+o3qXw7zISa1js878Zj8+v3I0xFTetJLQ==
return "\xC3\x0D\xADF\x98\xBC\x8CV\x13B\x8E\x11\xF2\xE5\x9C~\xD0\xEF\x3E\xEC\xC6t\xF6\xEF\xE5\x83\x18i\xC6\xC1\xD4\x92W\x9A\xF3\x21\x14\x18\x20\x03\xEA7\xA9\x7C\x3B\xCC\x84\x9A\xD6\x3B\x3C\xEF\xC6c\xF3\xEB\xF7\x23LEM\xEBI-";

View File

@@ -0,0 +1,3 @@
<?php // test.encrypt.public on Wed, 03 Jul 2024 12:19:37 +0000
return "W\x9A\xF3\x21\x14\x18\x20\x03\xEA7\xA9\x7C\x3B\xCC\x84\x9A\xD6\x3B\x3C\xEF\xC6c\xF3\xEB\xF7\x23LEM\xEBI-";

View File

@@ -0,0 +1,5 @@
<?php
return [
'AKISMET_KEY' => null,
];

View File

@@ -5,6 +5,12 @@
# https://symfony.com/doc/current/best_practices.html#use-parameters-for-application-configuration
parameters:
photo_dir: "%kernel.project_dir%/public/uploads/photos"
default_admin_email: admin@example.com
admin_email: "%env(string:default:default_admin_email:ADMIN_EMAIL)%"
default_base_url: 'http://127.0.0.1'
router.request_context.base_url: '%env(default:default_base_url:SYMFONY_DEFAULT_ROUTE_URL)%'
app.supported_locales: 'en|fr'
services:
# default configuration for services in *this* file
_defaults: