FIX: Update image slider module functionality to PrestaShop 9
This commit is contained in:
@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user