Skip to content

Commit

Permalink
ANCH-1401 remove connection name and use ConnectionManagerInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
PouyaAmani committed Nov 29, 2023
1 parent ddc94d6 commit d00e075
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Command/DatabaseCreateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
2 changes: 1 addition & 1 deletion Command/DatabaseDropCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit d00e075

Please sign in to comment.