Skip to content

Commit

Permalink
autoloader adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
mandan2 committed Jun 13, 2023
1 parent 20346d5 commit 7ea7fb3
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
1 change: 1 addition & 0 deletions mollie.php
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ public function uninstall()
{
/** @var \Mollie\Install\Uninstall $uninstall */
$uninstall = $this->getService(\Mollie\Install\Uninstall::class);

if (!$uninstall->uninstall()) {
$this->_errors[] = $uninstall->getErrors();

Expand Down
4 changes: 0 additions & 4 deletions src/Factory/ModuleFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,6 @@ public function getModuleName(): ?string
{
$module = $this->getModule();

if (!$module) {
return null;
}

return $module->name ?? null;
}
}
3 changes: 1 addition & 2 deletions src/ServiceProvider/BaseServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ public function register(Container $container)
$this->addService($container, MolCustomerRepository::class, MolCustomerRepository::class)
->withArgument('MolCustomer');

$this->addService($container, UninstallerInterface::class, Mollie\Install\DatabaseTableUninstaller::class)
->withArgument($container->get(ModuleFactory::class));
$this->addService($container, UninstallerInterface::class, $container->get(Mollie\Install\DatabaseTableUninstaller::class));

$this->addService($container, InstallerInterface::class, Installer::class)
->withArguments([
Expand Down

0 comments on commit 7ea7fb3

Please sign in to comment.