Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
689937e
#19 add DatabaseUpdaterTask demo
xaviermarchegay Dec 10, 2024
fee41d5
#19 rename demos + add description + help
xaviermarchegay Dec 10, 2024
538eb4a
#17 easyadmin now require symfony/ux-twig-component. Add composer ext…
njoubert-cleverage Dec 9, 2024
c4f9160
#17 recipes:update doctrine/doctrine-bundle
njoubert-cleverage Dec 9, 2024
d23451d
#17 recipes:update phpstan/phpstan
njoubert-cleverage Dec 9, 2024
bf24a7b
#17 recipes:update symfony/console
njoubert-cleverage Dec 9, 2024
427c243
#17 recipes:update symfony/flex
njoubert-cleverage Dec 9, 2024
b31dda2
#17 recipes:update symfony/framework-bundle
njoubert-cleverage Dec 9, 2024
2f1855f
#17 recipes:update symfony/monolog-bundle
njoubert-cleverage Dec 9, 2024
c899ec7
#17 recipes:update symfony/routing
njoubert-cleverage Dec 9, 2024
b3a7ece
#17 recipes:update symfony/security-bundle
njoubert-cleverage Dec 9, 2024
8deddee
#17 recipes:update symfony/translation
njoubert-cleverage Dec 9, 2024
b1798b2
#17 recipes:update symfony/twig-bundle
njoubert-cleverage Dec 9, 2024
8173e52
#17 recipes:update symfony/uid
njoubert-cleverage Dec 9, 2024
b5460c0
#17 recipes:update symfony/validator
njoubert-cleverage Dec 9, 2024
6138ad1
#17 recipes:install symfony/form
njoubert-cleverage Dec 9, 2024
6d7d619
#17 comment csrf configuration to maintain Symfony 6.4 compatibility
njoubert-cleverage Dec 9, 2024
63b982a
#18 Fix previous MergeRequest doesn't install cleverage/flysystem-pro…
njoubert-cleverage Dec 10, 2024
083845b
#17 easyadmin now require symfony/ux-twig-component. Add composer ext…
njoubert-cleverage Dec 9, 2024
2710f00
#17 recipes:update symfony/flex
njoubert-cleverage Dec 9, 2024
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
6 changes: 3 additions & 3 deletions .env
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

###> symfony/framework-bundle ###
APP_ENV=dev
APP_SECRET=5d06ec43bb4fba3510e81575422626eb
APP_SECRET=
###< symfony/framework-bundle ###

###> symfony/messenger ###
Expand All @@ -32,8 +32,8 @@ MESSENGER_TRANSPORT_DSN=doctrine://default?auto_setup=0
#
# DATABASE_URL="sqlite:///%kernel.project_dir%/var/data.db"
DATABASE_URL="mysql://app:app@mysql:3306/app?serverVersion=9.1.0&charset=utf8mb4"
# DATABASE_URL="mysql://app:!ChangeMe!@database:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
#DATABASE_URL="postgresql://app:!ChangeMe!@database:5432/app?serverVersion=15&charset=utf8"
# DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
# DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
###< doctrine/doctrine-bundle ###

###> docker/atmoz-sftp ###
Expand Down
4 changes: 4 additions & 0 deletions .env.dev
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@

###> symfony/framework-bundle ###
APP_SECRET=956760cc4838bd97673f94ffec6eed30
###< symfony/framework-bundle ###
4 changes: 4 additions & 0 deletions bin/console
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
use App\Kernel;
use Symfony\Bundle\FrameworkBundle\Console\Application;

if (!is_dir(dirname(__DIR__).'/vendor')) {
throw new LogicException('Dependencies are missing. Try running "composer install".');
}

if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
}
Expand Down
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -58,5 +58,11 @@
}
],
"minimum-stability": "dev",
"prefer-stable": true
"prefer-stable": true,
"extra": {
"symfony": {
"allow-contrib": false,
"require": "7.2.*"
}
}
}
3 changes: 2 additions & 1 deletion config/bundles.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
CleverAge\SoapProcessBundle\CleverAgeSoapProcessBundle::class => ['all' => true],
CleverAge\RestProcessBundle\CleverAgeRestProcessBundle::class => ['all' => true],
CleverAge\FlysystemProcessBundle\CleverAgeFlysystemProcessBundle::class => ['all' => true],
\League\FlysystemBundle\FlysystemBundle::class => ['all' => true]
League\FlysystemBundle\FlysystemBundle::class => ['all' => true],
Symfony\UX\TwigComponent\TwigComponentBundle::class => ['all' => true],
];
12 changes: 12 additions & 0 deletions config/packages/csrf.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# Enable stateless CSRF protection for forms and logins/logouts
# Uncomment following if you are using Symfony 7.2 or higher
#framework:
# form:
# csrf_protection:
# token_id: submit
#
# csrf_protection:
# stateless_token_ids:
# - submit
# - authenticate
# - logout
8 changes: 7 additions & 1 deletion config/packages/doctrine.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,28 @@ doctrine:

# IMPORTANT: You MUST configure your server version,
# either here or in the DATABASE_URL env var (see .env file)
#server_version: '15'
#server_version: '16'

profiling_collect_backtrace: '%kernel.debug%'
use_savepoints: true
orm:
auto_generate_proxy_classes: true
enable_lazy_ghost_objects: true
report_fields_where_declared: true
validate_xml_mapping: true
naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
identity_generation_preferences:
Doctrine\DBAL\Platforms\PostgreSQLPlatform: identity
auto_mapping: true
mappings:
App:
type: attribute
is_bundle: false
dir: '%kernel.project_dir%/src/Entity'
prefix: 'App\Entity'
alias: App
controller_resolver:
auto_mapping: false

when@test:
doctrine:
Expand Down
14 changes: 2 additions & 12 deletions config/packages/framework.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,12 @@
# see https://symfony.com/doc/current/reference/configuration/framework.html
framework:
secret: '%env(APP_SECRET)%'
#csrf_protection: true
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.
# Remove or comment this section to explicitly disable session support.
session:
handler_id: null
cookie_secure: auto
cookie_samesite: lax
storage_factory_id: session.storage.factory.native
# Note that the session will be started ONLY if you read or write from it.
session: true

#esi: true
#fragments: true
php_errors:
log: true

when@test:
framework:
Expand Down
1 change: 1 addition & 0 deletions config/packages/monolog.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,4 @@ when@prod:
type: stream
channels: [deprecation]
path: php://stderr
formatter: monolog.formatter.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
clever_age_process:
configurations:
demo.doctrine.read:
demo.doctrine.database.read:
description: >
A simple process to use DoctrineProcessBundle as database reader
help: >
Ex: bin/console cleverage:process:execute demo.doctrine.read
Ex: bin/console cleverage:process:execute demo.doctrine.database.read
options:
ui:
source: Bar
Expand Down
24 changes: 24 additions & 0 deletions config/packages/process/demo.doctrine.database.update.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
clever_age_process:
configurations:
demo.doctrine.database.update:
description: >
A simple process to use DoctrineProcessBundle as database updater
help: >
Ex: bin/console cleverage:process:execute demo.doctrine.database.update
options:
ui:
source: Bar
target: Foo
tasks:
entry:
service: '@CleverAge\DoctrineProcessBundle\Task\Database\DatabaseUpdaterTask'
options:
sql: 'update process_user set firstname = :firstname, lastname = :lastname'
input_as_params: false
params:
firstname: Paul
lastname: Durand
outputs: [debug]

debug:
service: '@CleverAge\ProcessBundle\Task\Debug\DebugTask'
2 changes: 0 additions & 2 deletions config/packages/routing.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
framework:
router:
utf8: true

# 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
Expand Down
10 changes: 1 addition & 9 deletions config/packages/translation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,4 @@ framework:
default_path: '%kernel.project_dir%/translations'
fallbacks:
- en
# providers:
# crowdin:
# dsn: '%env(CROWDIN_DSN)%'
# loco:
# dsn: '%env(LOCO_DSN)%'
# lokalise:
# dsn: '%env(LOKALISE_DSN)%'
# phrase:
# dsn: '%env(PHRASE_DSN)%'
providers:
2 changes: 1 addition & 1 deletion config/packages/twig.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
twig:
default_path: '%kernel.project_dir%/templates'
file_name_pattern: '*.twig'

when@test:
twig:
Expand Down
5 changes: 5 additions & 0 deletions config/packages/twig_component.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
twig_component:
anonymous_template_directory: 'components/'
defaults:
# Namespace & directory for components
App\Twig\Components\: 'components/'
4 changes: 0 additions & 4 deletions config/packages/uid.yaml

This file was deleted.

2 changes: 0 additions & 2 deletions config/packages/validator.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
framework:
validation:
email_validation_mode: html5

# Enables validator auto-mapping support.
# For instance, basic validation constraints will be inferred from Doctrine's metadata.
#auto_mapping:
Expand Down
3 changes: 3 additions & 0 deletions config/routes/security.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
_security_logout:
resource: security.route_loader.logout
type: service
Loading