From 3a558eada844fcc1a5a31d8fed48d12574b866ec Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rapha=C3=ABl=20Gertz?= Date: Tue, 27 Feb 2024 11:17:57 +0100 Subject: [PATCH 1/1] Remove dropped config files Remove dropped public index --- config/bootstrap.php | 23 -------------------- config/packages/cache.yaml | 19 ---------------- config/packages/dev/web_profiler.yaml | 6 ------ config/packages/doctrine.yaml | 16 -------------- config/packages/framework.yaml | 24 --------------------- config/packages/google_apiclient.yaml | 7 ------ config/packages/mailer.yaml | 3 --- config/packages/prod/doctrine.yaml | 20 ----------------- config/packages/prod/routing.yaml | 3 --- config/packages/routing.yaml | 3 --- config/packages/test/validator.yaml | 3 --- config/packages/test/web_profiler.yaml | 6 ------ config/packages/translation.yaml | 3 --- config/packages/twig.yaml | 5 ----- config/packages/validator.yaml | 8 ------- config/preload.php | 5 ----- config/routes.yaml | 3 --- config/routes/annotations.yaml | 0 config/routes/dev/framework.yaml | 3 --- config/routes/dev/web_profiler.yaml | 7 ------ config/routes/framework.yaml | 4 ---- config/secrets/dev/.gitignore | 1 - config/secrets/dev/dev.encrypt.public.php | 3 --- config/secrets/prod/.gitignore | 1 - config/secrets/prod/prod.encrypt.public.php | 3 --- config/services.yaml | 0 public/index.php | 9 -------- 27 files changed, 188 deletions(-) delete mode 100644 config/bootstrap.php delete mode 100644 config/packages/cache.yaml delete mode 100644 config/packages/dev/web_profiler.yaml delete mode 100644 config/packages/doctrine.yaml delete mode 100644 config/packages/framework.yaml delete mode 100644 config/packages/google_apiclient.yaml delete mode 100644 config/packages/mailer.yaml delete mode 100644 config/packages/prod/doctrine.yaml delete mode 100644 config/packages/prod/routing.yaml delete mode 100644 config/packages/routing.yaml delete mode 100644 config/packages/test/validator.yaml delete mode 100644 config/packages/test/web_profiler.yaml delete mode 100644 config/packages/translation.yaml delete mode 100644 config/packages/twig.yaml delete mode 100644 config/packages/validator.yaml delete mode 100644 config/preload.php delete mode 100644 config/routes.yaml delete mode 100644 config/routes/annotations.yaml delete mode 100644 config/routes/dev/framework.yaml delete mode 100644 config/routes/dev/web_profiler.yaml delete mode 100644 config/routes/framework.yaml delete mode 100644 config/secrets/dev/.gitignore delete mode 100644 config/secrets/dev/dev.encrypt.public.php delete mode 100644 config/secrets/prod/.gitignore delete mode 100644 config/secrets/prod/prod.encrypt.public.php delete mode 100644 config/services.yaml delete mode 100644 public/index.php diff --git a/config/bootstrap.php b/config/bootstrap.php deleted file mode 100644 index 976a776..0000000 --- a/config/bootstrap.php +++ /dev/null @@ -1,23 +0,0 @@ -=1.2) -if (is_array($env = @include dirname(__DIR__).'/.env.local.php') && ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? $env['APP_ENV']) === $env['APP_ENV']) { - foreach ($env as $k => $v) { - $_ENV[$k] = $_ENV[$k] ?? (isset($_SERVER[$k]) && 0 !== strpos($k, 'HTTP_') ? $_SERVER[$k] : $v); - } -} elseif (!class_exists(Dotenv::class)) { - throw new RuntimeException('Please run "composer require symfony/dotenv" to load the ".env" files configuring the application.'); -} else { - // load all the .env files - (new Dotenv(false))->loadEnv(dirname(__DIR__).'/.env'); -} - -$_SERVER += $_ENV; -$_SERVER['APP_ENV'] = $_ENV['APP_ENV'] = ($_SERVER['APP_ENV'] ?? $_ENV['APP_ENV'] ?? null) ?: 'dev'; -$_SERVER['APP_DEBUG'] = $_SERVER['APP_DEBUG'] ?? $_ENV['APP_DEBUG'] ?? 'prod' !== $_SERVER['APP_ENV']; -$_SERVER['APP_DEBUG'] = $_ENV['APP_DEBUG'] = (int) $_SERVER['APP_DEBUG'] || filter_var($_SERVER['APP_DEBUG'], FILTER_VALIDATE_BOOLEAN) ? '1' : '0'; diff --git a/config/packages/cache.yaml b/config/packages/cache.yaml deleted file mode 100644 index 6899b72..0000000 --- a/config/packages/cache.yaml +++ /dev/null @@ -1,19 +0,0 @@ -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 diff --git a/config/packages/dev/web_profiler.yaml b/config/packages/dev/web_profiler.yaml deleted file mode 100644 index e92166a..0000000 --- a/config/packages/dev/web_profiler.yaml +++ /dev/null @@ -1,6 +0,0 @@ -web_profiler: - toolbar: true - intercept_redirects: false - -framework: - profiler: { only_exceptions: false } diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml deleted file mode 100644 index 22c94c3..0000000 --- a/config/packages/doctrine.yaml +++ /dev/null @@ -1,16 +0,0 @@ -doctrine: - dbal: - url: '%env(resolve:DATABASE_URL)%' - - # IMPORTANT: You MUST configure your server version, - # either here or in the DATABASE_URL env var (see .env file) - #server_version: '5.7' - - # only needed for MySQL - charset: utf8mb4 - default_table_options: - collate: utf8mb4_unicode_ci - orm: - auto_generate_proxy_classes: true - naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware - auto_mapping: true diff --git a/config/packages/framework.yaml b/config/packages/framework.yaml deleted file mode 100644 index 7853e9e..0000000 --- a/config/packages/framework.yaml +++ /dev/null @@ -1,24 +0,0 @@ -# see https://symfony.com/doc/current/reference/configuration/framework.html -framework: - secret: '%env(APP_SECRET)%' - #csrf_protection: true - http_method_override: false - - # 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 - - #esi: true - #fragments: true - php_errors: - log: true - -when@test: - framework: - test: true - session: - storage_factory_id: session.storage.factory.mock_file diff --git a/config/packages/google_apiclient.yaml b/config/packages/google_apiclient.yaml deleted file mode 100644 index 4809e14..0000000 --- a/config/packages/google_apiclient.yaml +++ /dev/null @@ -1,7 +0,0 @@ -services: - Google_Client: - class: Google_Client - calls: - - [setDeveloperKey, ['%env(GOOGLE_API_KEY)%']] - - [setClientId, ['%env(GOOGLE_CLIENT_ID)%']] - - [setClientSecret, ['%env(GOOGLE_CLIENT_SECRET)%']] diff --git a/config/packages/mailer.yaml b/config/packages/mailer.yaml deleted file mode 100644 index 56a650d..0000000 --- a/config/packages/mailer.yaml +++ /dev/null @@ -1,3 +0,0 @@ -framework: - mailer: - dsn: '%env(MAILER_DSN)%' diff --git a/config/packages/prod/doctrine.yaml b/config/packages/prod/doctrine.yaml deleted file mode 100644 index 084f59a..0000000 --- a/config/packages/prod/doctrine.yaml +++ /dev/null @@ -1,20 +0,0 @@ -doctrine: - orm: - auto_generate_proxy_classes: false - metadata_cache_driver: - type: pool - pool: doctrine.system_cache_pool - 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 diff --git a/config/packages/prod/routing.yaml b/config/packages/prod/routing.yaml deleted file mode 100644 index b3e6a0a..0000000 --- a/config/packages/prod/routing.yaml +++ /dev/null @@ -1,3 +0,0 @@ -framework: - router: - strict_requirements: null diff --git a/config/packages/routing.yaml b/config/packages/routing.yaml deleted file mode 100644 index 7e97762..0000000 --- a/config/packages/routing.yaml +++ /dev/null @@ -1,3 +0,0 @@ -framework: - router: - utf8: true diff --git a/config/packages/test/validator.yaml b/config/packages/test/validator.yaml deleted file mode 100644 index 1e5ab78..0000000 --- a/config/packages/test/validator.yaml +++ /dev/null @@ -1,3 +0,0 @@ -framework: - validation: - not_compromised_password: false diff --git a/config/packages/test/web_profiler.yaml b/config/packages/test/web_profiler.yaml deleted file mode 100644 index 03752de..0000000 --- a/config/packages/test/web_profiler.yaml +++ /dev/null @@ -1,6 +0,0 @@ -web_profiler: - toolbar: false - intercept_redirects: false - -framework: - profiler: { collect: false } diff --git a/config/packages/translation.yaml b/config/packages/translation.yaml deleted file mode 100644 index b096793..0000000 --- a/config/packages/translation.yaml +++ /dev/null @@ -1,3 +0,0 @@ -framework: - translator: - default_path: '%kernel.project_dir%/translations' diff --git a/config/packages/twig.yaml b/config/packages/twig.yaml deleted file mode 100644 index 6403e6a..0000000 --- a/config/packages/twig.yaml +++ /dev/null @@ -1,5 +0,0 @@ -twig: - default_path: '%kernel.project_dir%/templates' - debug: '%kernel.debug%' - strict_variables: '%kernel.debug%' - exception_controller: null diff --git a/config/packages/validator.yaml b/config/packages/validator.yaml deleted file mode 100644 index 350786a..0000000 --- a/config/packages/validator.yaml +++ /dev/null @@ -1,8 +0,0 @@ -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: - # App\Entity\: [] diff --git a/config/preload.php b/config/preload.php deleted file mode 100644 index 5ebcdb2..0000000 --- a/config/preload.php +++ /dev/null @@ -1,5 +0,0 @@ -