]> Raphaël G. Git Repositories - airlibre/commitdiff
Remove dropped config files
authorRaphaël Gertz <git@rapsys.eu>
Tue, 27 Feb 2024 10:17:57 +0000 (11:17 +0100)
committerRaphaël Gertz <git@rapsys.eu>
Tue, 27 Feb 2024 10:17:57 +0000 (11:17 +0100)
Remove dropped public index

27 files changed:
config/bootstrap.php [deleted file]
config/packages/cache.yaml [deleted file]
config/packages/dev/web_profiler.yaml [deleted file]
config/packages/doctrine.yaml [deleted file]
config/packages/framework.yaml [deleted file]
config/packages/google_apiclient.yaml [deleted file]
config/packages/mailer.yaml [deleted file]
config/packages/prod/doctrine.yaml [deleted file]
config/packages/prod/routing.yaml [deleted file]
config/packages/routing.yaml [deleted file]
config/packages/test/validator.yaml [deleted file]
config/packages/test/web_profiler.yaml [deleted file]
config/packages/translation.yaml [deleted file]
config/packages/twig.yaml [deleted file]
config/packages/validator.yaml [deleted file]
config/preload.php [deleted file]
config/routes.yaml [deleted file]
config/routes/annotations.yaml [deleted file]
config/routes/dev/framework.yaml [deleted file]
config/routes/dev/web_profiler.yaml [deleted file]
config/routes/framework.yaml [deleted file]
config/secrets/dev/.gitignore [deleted file]
config/secrets/dev/dev.encrypt.public.php [deleted file]
config/secrets/prod/.gitignore [deleted file]
config/secrets/prod/prod.encrypt.public.php [deleted file]
config/services.yaml [deleted file]
public/index.php [deleted file]

diff --git a/config/bootstrap.php b/config/bootstrap.php
deleted file mode 100644 (file)
index 976a776..0000000
+++ /dev/null
@@ -1,23 +0,0 @@
-<?php
-
-use Symfony\Component\Dotenv\Dotenv;
-
-require dirname(__DIR__).'/vendor/autoload.php';
-
-// Load cached env vars if the .env.local.php file exists
-// Run "composer dump-env prod" to create it (requires symfony/flex >=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 (file)
index 6899b72..0000000
+++ /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 (file)
index e92166a..0000000
+++ /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 (file)
index 22c94c3..0000000
+++ /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 (file)
index 7853e9e..0000000
+++ /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 (file)
index 4809e14..0000000
+++ /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 (file)
index 56a650d..0000000
+++ /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 (file)
index 084f59a..0000000
+++ /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 (file)
index b3e6a0a..0000000
+++ /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 (file)
index 7e97762..0000000
+++ /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 (file)
index 1e5ab78..0000000
+++ /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 (file)
index 03752de..0000000
+++ /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 (file)
index b096793..0000000
+++ /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 (file)
index 6403e6a..0000000
+++ /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 (file)
index 350786a..0000000
+++ /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 (file)
index 5ebcdb2..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-<?php
-
-if (file_exists(dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php')) {
-    require dirname(__DIR__).'/var/cache/prod/App_KernelProdContainer.preload.php';
-}
diff --git a/config/routes.yaml b/config/routes.yaml
deleted file mode 100644 (file)
index c3283aa..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#index:
-#    path: /
-#    controller: App\Controller\DefaultController::index
diff --git a/config/routes/annotations.yaml b/config/routes/annotations.yaml
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/config/routes/dev/framework.yaml b/config/routes/dev/framework.yaml
deleted file mode 100644 (file)
index bcbbf13..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-_errors:
-    resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
-    prefix: /_error
diff --git a/config/routes/dev/web_profiler.yaml b/config/routes/dev/web_profiler.yaml
deleted file mode 100644 (file)
index c82beff..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-web_profiler_wdt:
-    resource: '@WebProfilerBundle/Resources/config/routing/wdt.xml'
-    prefix: /_wdt
-
-web_profiler_profiler:
-    resource: '@WebProfilerBundle/Resources/config/routing/profiler.xml'
-    prefix: /_profiler
diff --git a/config/routes/framework.yaml b/config/routes/framework.yaml
deleted file mode 100644 (file)
index 0fc74bb..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-when@dev:
-    _errors:
-        resource: '@FrameworkBundle/Resources/config/routing/errors.xml'
-        prefix: /_error
diff --git a/config/secrets/dev/.gitignore b/config/secrets/dev/.gitignore
deleted file mode 100644 (file)
index 1097ded..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/dev.decrypt.private.php
diff --git a/config/secrets/dev/dev.encrypt.public.php b/config/secrets/dev/dev.encrypt.public.php
deleted file mode 100644 (file)
index 112ff12..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php // dev.encrypt.public on Wed, 20 May 2020 13:48:31 +0200
-
-return "\x18\x9B\xF6\x23\x99X\xF8\x80\xB9\xF9o\xA9\xB9\xCA\x2A\x16\x9D\x0B\xF3\xA6\x5E\x10\x11\xC5gJjm\x18\x87\x5E\x08";
diff --git a/config/secrets/prod/.gitignore b/config/secrets/prod/.gitignore
deleted file mode 100644 (file)
index ba126a0..0000000
+++ /dev/null
@@ -1 +0,0 @@
-/prod.decrypt.private.php
diff --git a/config/secrets/prod/prod.encrypt.public.php b/config/secrets/prod/prod.encrypt.public.php
deleted file mode 100644 (file)
index 4656319..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-<?php // prod.encrypt.public on Wed, 20 May 2020 13:48:52 +0200
-
-return "\xF2HO\x0C4\x03Q\xD8_B_\x91\x95\x2F\xC1sj\xEC\xBF\x9B\xDB\x96\x17\x1BR\x3FGQi\xB8\x26R";
diff --git a/config/services.yaml b/config/services.yaml
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/public/index.php b/public/index.php
deleted file mode 100644 (file)
index 9982c21..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-<?php
-
-use App\Kernel;
-
-require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
-
-return function (array $context) {
-    return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
-};