From d00e0750714ee3d466f8b1a79fe7cc6276088ef5 Mon Sep 17 00:00:00 2001 From: PouyaAmani Date: Wed, 29 Nov 2023 17:21:02 +0100 Subject: [PATCH] ANCH-1401 remove connection name and use ConnectionManagerInterface --- Command/DatabaseCreateCommand.php | 2 +- Command/DatabaseDropCommand.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Command/DatabaseCreateCommand.php b/Command/DatabaseCreateCommand.php index 19619137..154e85f1 100644 --- a/Command/DatabaseCreateCommand.php +++ b/Command/DatabaseCreateCommand.php @@ -61,7 +61,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $serviceContainer = Propel::getServiceContainer(); $serviceContainer->setAdapterClass($connectionName, $config['adapter']); - $serviceContainer->setConnectionManager($connectionName, $manager); + $serviceContainer->setConnectionManager($manager); $connection = Propel::getConnection($connectionName); diff --git a/Command/DatabaseDropCommand.php b/Command/DatabaseDropCommand.php index 7d2788ed..4cd006fb 100644 --- a/Command/DatabaseDropCommand.php +++ b/Command/DatabaseDropCommand.php @@ -87,7 +87,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int $serviceContainer = Propel::getServiceContainer(); $serviceContainer->setAdapterClass($connectionName, $config['adapter']); - $serviceContainer->setConnectionManager($connectionName, $manager); + $serviceContainer->setConnectionManager($manager); $connection = Propel::getConnection($connectionName);