From 00125a8b23594579e7f3d9b0d24a4d66673872a6 Mon Sep 17 00:00:00 2001 From: David Marland Date: Sun, 7 Aug 2022 15:11:58 +0100 Subject: [PATCH] I think I've found it --- app/composer.json | 10 +++++++++ app/config/packages/prod/doctrine.yaml | 31 -------------------------- 2 files changed, 10 insertions(+), 31 deletions(-) delete mode 100644 app/config/packages/prod/doctrine.yaml diff --git a/app/composer.json b/app/composer.json index 0632e81..c67f5f7 100644 --- a/app/composer.json +++ b/app/composer.json @@ -65,6 +65,16 @@ "symfony/polyfill-php56": "*" }, "scripts": { + "auto-scripts": { + "cache:clear": "symfony-cmd", + "assets:install --symlink --relative %PUBLIC_DIR%": "symfony-cmd" + }, + "post-install-cmd": [ + "@auto-scripts" + ], + "post-update-cmd": [ + "@auto-scripts" + ], "test": "phpunit", "loc": "phploc src tests bin", "cbf": "phpcbf src tests bin", diff --git a/app/config/packages/prod/doctrine.yaml b/app/config/packages/prod/doctrine.yaml deleted file mode 100644 index 2f16f0f..0000000 --- a/app/config/packages/prod/doctrine.yaml +++ /dev/null @@ -1,31 +0,0 @@ -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