Skip to content
Open
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 composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"license": "MIT",
"type": "project",
"description": "Symfony Demo Application",
"minimum-stability": "stable",
"minimum-stability": "dev",
"prefer-stable": true,
"require": {
"php": ">=8.2",
Expand Down Expand Up @@ -111,7 +111,7 @@
"extra": {
"symfony": {
"allow-contrib": true,
"require": "7.3.*"
"require": "7.4.*"
}
}
}
1,715 changes: 919 additions & 796 deletions composer.lock

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions config/packages/asset_mapper.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

return App::config([

Check failure on line 5 in config/packages/asset_mapper.php

View workflow job for this annotation

GitHub Actions / PHPStan

Parameter #1 $config of static method Symfony\Component\DependencyInjection\Loader\Configurator\App::config() expects array{imports?: list<array{resource: string, type?: string|null, ignore_errors?: bool}|string>, parameters?: array<string, array<array|bool|float|int|string|UnitEnum|null>|bool|float|int|string|UnitEnum|null>, services?: array{_defaults?: array{public?: bool, tags?: mixed, resource_tags?: mixed, autowire?: bool, autoconfigure?: bool, bind?: array<string, mixed>}, _instanceof?: array{shared?: bool, lazy?: bool|string, public?: bool, properties?: array<string, mixed>, configurator?: array{string|Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator, string}|Closure|string|Symfony\Component\DependencyInjection\Loader\Configurator\ExpressionConfigurator|Symfony\Component\DependencyInjection\Loader\Configurator\ReferenceConfigurator, calls?: list<array<0|1|2|string, array<int<0, max>|string, mixed>|bool|string>>, tags?: mixed, resource_tags?: mixed, ...}}, framework?: array{secret?: bool|float|int|string|null, http_method_override?: bool, allowed_http_method_override?: list<string>|null, trust_x_sendfile_type_header?: bool|float|int|string|null, ide?: bool|float|int|string|null, test?: bool, default_locale?: bool|float|int|string|null, set_locale_from_accept_language?: bool, ...}, security?: array{access_denied_url?: bool|float|int|string|null, session_fixation_strategy?: 'invalidate'|'migrate'|'none', hide_user_not_found?: bool, expose_security_errors?: Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::AccountStatus|Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::All|Symfony\Component\Security\Http\Authentication\ExposeSecurityLevel::None, erase_credentials?: bool, access_decision_manager?: array{strategy?: 'affirmative'|'consensus'|'priority'|'unanimous', service?: bool|float|int|string|null, strategy_service?: bool|float|int|string|null, allow_if_all_abstain?: bool, allow_if_equal_granted_denied?: bool}, password_hashers?: array<string, array{algorithm?: bool|float|int|string|null, migrate_from?: list<bool|float|int|string|null>, hash_algorithm?: bool|float|int|string|null, key_length?: bool|float|int|string|null, ignore_case?: bool, encode_as_base64?: bool, iterations?: bool|float|int|string|null, cost?: int, ...}|string>, providers?: array<string, array{id?: bool|float|int|string|null, chain?: array{providers?: list<bool|float|int|string|null>}}>, ...}, doctrine?: array{dbal?: array{default_connection?: bool|float|int|string|null, types?: array<string, array{class: bool|float|int|string|null, commented?: bool}|string>, driver_schemes?: array<string, bool|float|int|string|null>, connections?: array<string, array{url?: bool|float|int|string|null, dbname?: bool|float|int|string|null, host?: bool|float|int|string|null, port?: bool|float|int|string|null, user?: bool|float|int|string|null, password?: bool|float|int|string|null, override_url?: bool, dbname_suffix?: bool|float|int|string|null, ...}>}, orm?: array{default_entity_manager?: bool|float|int|string|null, auto_generate_proxy_classes?: bool|float|int|string|null, enable_lazy_ghost_objects?: bool, enable_native_lazy_objects?: bool, proxy_dir?: bool|float|int|string|null, proxy_namespace?: bool|float|int|string|null, controller_resolver?: array{enabled?: bool, auto_mapping?: bool|null, evict_cache?: bool}|bool, entity_managers?: array<string, array{query_cache_driver?: array{type?: bool|float|int|string|null, id?: bool|float|int|string|null, pool?: bool|float|int|string|null}|string, metadata_cache_driver?: array{type?: bool|float|int|string|null, id?: bool|float|int|string|null, pool?: bool|float|int|string|null}|string, result_cache_driver?: array{type?: bool|float|int|string|null, id?: bool|float|int|string|null, pool?: bool|float|int|string|null}|string, entity_listeners?: array{entities?: array<string, array{listeners?: array<string, array{events?: list<array{type?: bool|float|int|string|null, method?: bool|float|int|string|null}>}>}>}, connection?: bool|float|int|string|null, class_metad
'framework' => [
'asset_mapper' => [
// The paths to make available to the asset mapper.
'paths' => [
'assets/',
],
'missing_import_mode' => 'strict',
],
],
'when@prod' => [
'framework' => [
'asset_mapper' => [
'missing_import_mode' => 'warn',
],
],
],
]);
11 changes: 0 additions & 11 deletions config/packages/asset_mapper.yaml

This file was deleted.

28 changes: 28 additions & 0 deletions config/packages/cache.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?php

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

return App::config([
'framework' => [
'cache' => [
// Unique name of your app: used to compute stable namespaces for cache keys.
// 'prefix_seed' => 'your_vendor_name/app_name',

// The "app" cache stores to the filesystem by default.
// The data in this cache should persist between deploys.
// 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',

// Namespaced pools use the above "app" backend by default
// 'pools' => [
// 'my.dedicated.cache' => null,
// ],
],
],
]);
19 changes: 0 additions & 19 deletions config/packages/cache.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions config/packages/csrf.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<?php

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

// Enable stateless CSRF protection for forms and logins/logouts
return App::config([
'framework' => [
'form' => [
'csrf_protection' => [
'token_id' => 'submit',
],
],
'csrf_protection' => [
'stateless_token_ids' => [
'submit',
'authenticate',
'logout',
],
],
],
]);
11 changes: 0 additions & 11 deletions config/packages/csrf.yaml

This file was deleted.

13 changes: 13 additions & 0 deletions config/packages/dama_doctrine_test_bundle.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

return App::config([
'when@test' => [
'dama_doctrine_test' => [
'enable_static_connection' => true,
'enable_static_meta_data_cache' => true,
'enable_static_query_cache' => true,
],
],
]);
5 changes: 0 additions & 5 deletions config/packages/dama_doctrine_test_bundle.yaml

This file was deleted.

13 changes: 13 additions & 0 deletions config/packages/debug.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?php

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

return App::config([
'when@dev' => [
'debug' => [
// Forwards VarDumper Data clones to a centralized server allowing to inspect dumps on CLI or in your browser.
// See the "server:dump" command to start a new server.
'dump_destination' => 'tcp://'.env('VAR_DUMPER_SERVER'),

Check failure on line 10 in config/packages/debug.php

View workflow job for this annotation

GitHub Actions / PHPStan

Function env not found.
],
],
]);
5 changes: 0 additions & 5 deletions config/packages/debug.yaml

This file was deleted.

19 changes: 19 additions & 0 deletions config/packages/deprecations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

return App::config([
'when@prod' => [
// As of Symfony 5.1, deprecations are logged in the dedicated "deprecation" channel when it exists
// 'monolog' => [
// 'channels' => ['deprecation'],
// 'handlers' => [
// 'deprecation' => [
// 'type' => 'stream',
// 'channels' => ['deprecation'],
// 'path' => 'php://stderr',
// ],
// ],
// ],
],
]);
9 changes: 0 additions & 9 deletions config/packages/deprecations.yaml

This file was deleted.

74 changes: 70 additions & 4 deletions config/packages/doctrine.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,76 @@

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

return static function (ContainerConfigurator $container): void {
$container->extension('doctrine', [
return App::config([
'doctrine' => [
'dbal' => [
'url' => env('DATABASE_URL')->resolve(),

Check failure on line 8 in config/packages/doctrine.php

View workflow job for this annotation

GitHub Actions / PHPStan

Function env not found.

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

'profiling_collect_backtrace' => param('kernel.debug'),

Check failure on line 14 in config/packages/doctrine.php

View workflow job for this annotation

GitHub Actions / PHPStan

Function param not found.
'use_savepoints' => true,
],
'orm' => [
'auto_generate_proxy_classes' => 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' => param('kernel.project_dir').'/src/Entity',

Check failure on line 30 in config/packages/doctrine.php

View workflow job for this annotation

GitHub Actions / PHPStan

Function param not found.
'prefix' => 'App\\Entity',
'alias' => 'App',
],
],
'controller_resolver' => [
'auto_mapping' => false,
],
'enable_native_lazy_objects' => \PHP_VERSION_ID >= 80400,
],
]);
};
],
'when@test' => [
'doctrine' => [
'dbal' => [
// "TEST_TOKEN" is typically set by ParaTest
'dbname_suffix' => '_test'.env('TEST_TOKEN')->default(''),

Check failure on line 45 in config/packages/doctrine.php

View workflow job for this annotation

GitHub Actions / PHPStan

Function env not found.
],
],
],
'when@prod' => [
'doctrine' => [
'orm' => [
'auto_generate_proxy_classes' => false,
'proxy_dir' => param('kernel.build_dir').'/doctrine/orm/Proxies',

Check failure on line 53 in config/packages/doctrine.php

View workflow job for this annotation

GitHub Actions / PHPStan

Function param not found.
'query_cache_driver' => [
'type' => 'pool',
'pool' => 'doctrine.system_cache_pool',
],
'result_cache_driver' => [
'type' => 'pool',
'pool' => 'doctrine.result_cache_pool',
],
],
],
'framework' => [
'cache' => [
'pools' => [
'doctrine.result_cache_pool' => [
'adapter' => 'cache.app',
],
'doctrine.system_cache_pool' => [
'adapter' => 'cache.system',
],
],
],
],
],
]);
56 changes: 0 additions & 56 deletions config/packages/doctrine.yaml

This file was deleted.

14 changes: 14 additions & 0 deletions config/packages/doctrine_migrations.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Symfony\Component\DependencyInjection\Loader\Configurator;

return App::config([
'doctrine_migrations' => [
'migrations_paths' => [
// namespace is arbitrary but should be different from App\Migrations
// as migrations classes should NOT be autoloaded
'DoctrineMigrations' => param('kernel.project_dir').'/migrations',

Check failure on line 10 in config/packages/doctrine_migrations.php

View workflow job for this annotation

GitHub Actions / PHPStan

Function param not found.
],
'enable_profiler' => false,
],
]);
6 changes: 0 additions & 6 deletions config/packages/doctrine_migrations.yaml

This file was deleted.

Loading