mirror of
https://forge.chapril.org/tykayn/caisse-bliss
synced 2025-11-19 23:00:37 +01:00
up to sf 7
This commit is contained in:
parent
a39b6239b0
commit
501795a8fa
16586 changed files with 19384005 additions and 0 deletions
16
v1/old/config/packages/dev/easy_log_handler.yaml
Executable file
16
v1/old/config/packages/dev/easy_log_handler.yaml
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
services:
|
||||
EasyCorp\EasyLog\EasyLogHandler:
|
||||
public: false
|
||||
arguments: ['%kernel.logs_dir%/%kernel.environment%.log']
|
||||
|
||||
#// FIXME: How to add this configuration automatically without messing up with the monolog configuration?
|
||||
#monolog:
|
||||
# handlers:
|
||||
# buffered:
|
||||
# type: buffer
|
||||
# handler: easylog
|
||||
# channels: ['!event']
|
||||
# level: debug
|
||||
# easylog:
|
||||
# type: service
|
||||
# id: EasyCorp\EasyLog\EasyLogHandler
|
||||
19
v1/old/config/packages/dev/monolog.yaml
Executable file
19
v1/old/config/packages/dev/monolog.yaml
Executable file
|
|
@ -0,0 +1,19 @@
|
|||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: debug
|
||||
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:
|
||||
type: console
|
||||
process_psr_3_messages: false
|
||||
channels: ["!event", "!doctrine", "!console"]
|
||||
3
v1/old/config/packages/dev/routing.yaml
Executable file
3
v1/old/config/packages/dev/routing.yaml
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
framework:
|
||||
router:
|
||||
strict_requirements: true
|
||||
9
v1/old/config/packages/dev/security_checker.yaml
Executable file
9
v1/old/config/packages/dev/security_checker.yaml
Executable file
|
|
@ -0,0 +1,9 @@
|
|||
services:
|
||||
SensioLabs\Security\SecurityChecker:
|
||||
public: false
|
||||
|
||||
SensioLabs\Security\Command\SecurityCheckerCommand:
|
||||
arguments: ['@SensioLabs\Security\SecurityChecker']
|
||||
public: false
|
||||
tags:
|
||||
- { name: console.command, command: 'security:check' }
|
||||
4
v1/old/config/packages/dev/swiftmailer.yaml
Executable file
4
v1/old/config/packages/dev/swiftmailer.yaml
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
# See https://symfony.com/doc/current/email/dev_environment.html
|
||||
swiftmailer:
|
||||
# send all emails to a specific address
|
||||
#delivery_addresses: ['me@example.com']
|
||||
6
v1/old/config/packages/dev/web_profiler.yaml
Executable file
6
v1/old/config/packages/dev/web_profiler.yaml
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
web_profiler:
|
||||
toolbar: true
|
||||
intercept_redirects: false
|
||||
|
||||
framework:
|
||||
profiler: { only_exceptions: false }
|
||||
29
v1/old/config/packages/doctrine.yaml
Executable file
29
v1/old/config/packages/doctrine.yaml
Executable file
|
|
@ -0,0 +1,29 @@
|
|||
parameters:
|
||||
# Adds a fallback DATABASE_URL if the env var is not set.
|
||||
# This allows you to run cache:warmup even if your
|
||||
# environment variables are not available yet.
|
||||
# You should not need to change this value.
|
||||
env(DATABASE_URL): ''
|
||||
|
||||
doctrine:
|
||||
dbal:
|
||||
# configure these for your database server
|
||||
driver: 'pdo_mysql'
|
||||
server_version: '5.7'
|
||||
charset: utf8mb4
|
||||
|
||||
# With Symfony 3.3, remove the `resolve:` prefix
|
||||
url: '%env(resolve:DATABASE_URL)%'
|
||||
orm:
|
||||
auto_generate_proxy_classes: '%kernel.debug%'
|
||||
naming_strategy: doctrine.orm.naming_strategy.underscore
|
||||
auto_mapping: true
|
||||
resolve_target_entities:
|
||||
MsgPhp\User\Entity\Username: "truc"
|
||||
mappings:
|
||||
App:
|
||||
is_bundle: false
|
||||
type: annotation
|
||||
dir: '%kernel.project_dir%/src/Entity'
|
||||
prefix: 'App\Entity'
|
||||
alias: App
|
||||
5
v1/old/config/packages/doctrine_migrations.yaml
Executable file
5
v1/old/config/packages/doctrine_migrations.yaml
Executable file
|
|
@ -0,0 +1,5 @@
|
|||
doctrine_migrations:
|
||||
dir_name: '%kernel.project_dir%/src/Migrations'
|
||||
# namespace is arbitrary but should be different from App\Migrations
|
||||
# as migrations classes should NOT be autoloaded
|
||||
namespace: DoctrineMigrations
|
||||
15
v1/old/config/packages/fos_rest.yaml
Executable file
15
v1/old/config/packages/fos_rest.yaml
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
# Read the documentation: https://symfony.com/doc/master/bundles/FOSRestBundle/index.html
|
||||
fos_rest: ~
|
||||
# param_fetcher_listener: true
|
||||
# allowed_methods_listener: true
|
||||
# routing_loader: true
|
||||
# view:
|
||||
# view_response_listener: true
|
||||
# exception:
|
||||
# codes:
|
||||
# App\Exception\MyException: 403
|
||||
# messages:
|
||||
# App\Exception\MyException: Forbidden area.
|
||||
# format_listener:
|
||||
# rules:
|
||||
# - { path: ^/api, prefer_extension: true, fallback_format: json, priorities: [ json, html ] }
|
||||
30
v1/old/config/packages/framework.yaml
Executable file
30
v1/old/config/packages/framework.yaml
Executable file
|
|
@ -0,0 +1,30 @@
|
|||
framework:
|
||||
secret: '%env(APP_SECRET)%'
|
||||
#default_locale: en
|
||||
#csrf_protection: true
|
||||
#http_method_override: true
|
||||
|
||||
# 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: ~
|
||||
|
||||
#esi: true
|
||||
#fragments: true
|
||||
php_errors:
|
||||
log: true
|
||||
|
||||
cache:
|
||||
# Put the unique name of your app here: the prefix seed
|
||||
# is used to compute stable namespaces for cache keys.
|
||||
#prefix_seed: your_vendor_name/app_name
|
||||
|
||||
# The app cache caches to the filesystem by default.
|
||||
# Other options include:
|
||||
|
||||
# Redis
|
||||
#app: cache.adapter.redis
|
||||
#default_redis_provider: redis://localhost
|
||||
|
||||
# APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
|
||||
#app: cache.adapter.apcu
|
||||
13
v1/old/config/packages/msgphp_user.php
Executable file
13
v1/old/config/packages/msgphp_user.php
Executable file
|
|
@ -0,0 +1,13 @@
|
|||
<?php
|
||||
|
||||
use MsgPhp\User\Entity\User;
|
||||
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
|
||||
|
||||
return function ( ContainerConfigurator $container ) {
|
||||
$container->extension( 'msgphp_user',
|
||||
[
|
||||
'class_mapping' => [
|
||||
User::class => \App\Entity\User\User::class,
|
||||
],
|
||||
] );
|
||||
};
|
||||
31
v1/old/config/packages/prod/doctrine.yaml
Executable file
31
v1/old/config/packages/prod/doctrine.yaml
Executable file
|
|
@ -0,0 +1,31 @@
|
|||
doctrine:
|
||||
orm:
|
||||
metadata_cache_driver:
|
||||
type: service
|
||||
id: doctrine.system_cache_provider
|
||||
query_cache_driver:
|
||||
type: service
|
||||
id: doctrine.system_cache_provider
|
||||
result_cache_driver:
|
||||
type: service
|
||||
id: doctrine.result_cache_provider
|
||||
|
||||
services:
|
||||
doctrine.result_cache_provider:
|
||||
class: Symfony\Component\Cache\DoctrineProvider
|
||||
public: false
|
||||
arguments:
|
||||
- '@doctrine.result_cache_pool'
|
||||
doctrine.system_cache_provider:
|
||||
class: Symfony\Component\Cache\DoctrineProvider
|
||||
public: false
|
||||
arguments:
|
||||
- '@doctrine.system_cache_pool'
|
||||
|
||||
framework:
|
||||
cache:
|
||||
pools:
|
||||
doctrine.result_cache_pool:
|
||||
adapter: cache.app
|
||||
doctrine.system_cache_pool:
|
||||
adapter: cache.system
|
||||
17
v1/old/config/packages/prod/monolog.yaml
Executable file
17
v1/old/config/packages/prod/monolog.yaml
Executable file
|
|
@ -0,0 +1,17 @@
|
|||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: fingers_crossed
|
||||
action_level: error
|
||||
handler: nested
|
||||
excluded_404s:
|
||||
# regex: exclude all 404 errors from the logs
|
||||
- ^/
|
||||
nested:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: debug
|
||||
console:
|
||||
type: console
|
||||
process_psr_3_messages: false
|
||||
channels: ["!event", "!doctrine"]
|
||||
3
v1/old/config/packages/routing.yaml
Executable file
3
v1/old/config/packages/routing.yaml
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
framework:
|
||||
router:
|
||||
strict_requirements: ~
|
||||
33
v1/old/config/packages/security.yaml
Executable file
33
v1/old/config/packages/security.yaml
Executable file
|
|
@ -0,0 +1,33 @@
|
|||
security:
|
||||
# https://symfony.com/doc/current/security.html#where-do-users-come-from-user-providers
|
||||
providers:
|
||||
in_memory: { memory: ~ }
|
||||
firewalls:
|
||||
dev:
|
||||
pattern: ^/(_(profiler|wdt)|css|images|js)/
|
||||
security: false
|
||||
main:
|
||||
anonymous: true
|
||||
encoders:
|
||||
MsgPhp\User\Infra\Security\SecurityUser: bcrypt
|
||||
|
||||
providers:
|
||||
msgphp_user: { id: MsgPhp\User\Infra\Security\SecurityUserProvider }
|
||||
|
||||
firewalls:
|
||||
main:
|
||||
provider: msgphp_user
|
||||
anonymous: ~
|
||||
# activate different ways to authenticate
|
||||
|
||||
# http_basic: true
|
||||
# https://symfony.com/doc/current/security.html#a-configuring-how-your-users-will-authenticate
|
||||
|
||||
# form_login: true
|
||||
# https://symfony.com/doc/current/security/form_login_setup.html
|
||||
|
||||
# Easy way to control access for large sections of your site
|
||||
# Note: Only the *first* access control that matches will be used
|
||||
access_control:
|
||||
- { path: ^/admin, roles: ROLE_ADMIN }
|
||||
- { path: ^/profile, roles: ROLE_USER }
|
||||
3
v1/old/config/packages/swiftmailer.yaml
Executable file
3
v1/old/config/packages/swiftmailer.yaml
Executable file
|
|
@ -0,0 +1,3 @@
|
|||
swiftmailer:
|
||||
url: '%env(MAILER_URL)%'
|
||||
spool: { type: 'memory' }
|
||||
4
v1/old/config/packages/test/framework.yaml
Executable file
4
v1/old/config/packages/test/framework.yaml
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
framework:
|
||||
test: true
|
||||
session:
|
||||
storage_id: session.storage.mock_file
|
||||
7
v1/old/config/packages/test/monolog.yaml
Executable file
7
v1/old/config/packages/test/monolog.yaml
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
monolog:
|
||||
handlers:
|
||||
main:
|
||||
type: stream
|
||||
path: "%kernel.logs_dir%/%kernel.environment%.log"
|
||||
level: debug
|
||||
channels: ["!event"]
|
||||
2
v1/old/config/packages/test/swiftmailer.yaml
Executable file
2
v1/old/config/packages/test/swiftmailer.yaml
Executable file
|
|
@ -0,0 +1,2 @@
|
|||
swiftmailer:
|
||||
disable_delivery: true
|
||||
6
v1/old/config/packages/test/web_profiler.yaml
Executable file
6
v1/old/config/packages/test/web_profiler.yaml
Executable file
|
|
@ -0,0 +1,6 @@
|
|||
web_profiler:
|
||||
toolbar: false
|
||||
intercept_redirects: false
|
||||
|
||||
framework:
|
||||
profiler: { collect: false }
|
||||
7
v1/old/config/packages/translation.yaml
Executable file
7
v1/old/config/packages/translation.yaml
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
framework:
|
||||
default_locale: '%locale%'
|
||||
translator:
|
||||
paths:
|
||||
- '%kernel.project_dir%/translations'
|
||||
fallbacks:
|
||||
- '%locale%'
|
||||
4
v1/old/config/packages/twig.yaml
Executable file
4
v1/old/config/packages/twig.yaml
Executable file
|
|
@ -0,0 +1,4 @@
|
|||
twig:
|
||||
paths: ['%kernel.project_dir%/templates']
|
||||
debug: '%kernel.debug%'
|
||||
strict_variables: '%kernel.debug%'
|
||||
Loading…
Add table
Add a link
Reference in a new issue