fix: Update image slider module functionality to PrestaShop 9

This commit is contained in:
2025-11-19 14:50:14 +01:00
parent 6441fa4901
commit b6acb9f011
3 changed files with 6 additions and 5 deletions

View File

@ -10,6 +10,7 @@ if (file_exists(__DIR__ . '/vendor/autoload.php')) {
require_once __DIR__ . '/vendor/autoload.php';
}
use Symfony\Component\HttpFoundation\RedirectResponse;
use Oksydan\IsImageslider\Hook\HookInterface;
use Oksydan\IsImageslider\Installer\ImageSliderInstaller;
use PrestaShop\PrestaShop\Adapter\SymfonyContainer;
@ -66,11 +67,11 @@ class Is_imageslider extends Module implements WidgetInterface
return $this->getInstaller()->dropTables() && parent::uninstall();
}
public function getContent(): void
public function getContent()
{
\Tools::redirectAdmin(SymfonyContainer::getInstance()->get('router')->generate('is_imageslider_controller'));
$url = SymfonyContainer::getInstance()->get('router')->generate('is_imageslider_controller');
return new RedirectResponse($url);
}
/**
* @template T
*