From ccc5334202930ac10cff7620355c050578bcdc02 Mon Sep 17 00:00:00 2001 From: Sam Wilson Date: Tue, 10 Jan 2023 15:54:54 +0800 Subject: [PATCH] Add empty Doctrine config, to avoid errors Add console test to CI as a means to surface the service-loading issue. Bug: T318066 --- .github/workflows/ci.yml | 1 + config/bundles.php | 1 + config/packages/doctrine.yaml | 5 +++++ config/services.yaml | 3 --- 4 files changed, 7 insertions(+), 3 deletions(-) create mode 100644 config/packages/doctrine.yaml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5c904c7d..639223f7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,6 +42,7 @@ jobs: run: | composer lint npm run lint + ./bin/console - name: Build assets run: | diff --git a/config/bundles.php b/config/bundles.php index 48438f9b..59ec42e6 100644 --- a/config/bundles.php +++ b/config/bundles.php @@ -5,6 +5,7 @@ return [ Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true], Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle::class => ['all' => true], + Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true], Symfony\Bundle\WebProfilerBundle\WebProfilerBundle::class => ['dev' => true, 'test' => true], Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true], Symfony\Bundle\MonologBundle\MonologBundle::class => ['all' => true], diff --git a/config/packages/doctrine.yaml b/config/packages/doctrine.yaml new file mode 100644 index 00000000..c0df287f --- /dev/null +++ b/config/packages/doctrine.yaml @@ -0,0 +1,5 @@ +doctrine: + dbal: + connections: + default: + dbname: null diff --git a/config/services.yaml b/config/services.yaml index 2d9e734a..03cf9b88 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -41,6 +41,3 @@ services: App\Service\Renderer: arguments: $rsvgCommand: 'rsvg-convert' - - Wikimedia\ToolforgeBundle\Service\ReplicasClient: - autowire: false