FIX: Update module configuration redirect.
This commit is contained in:
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
|
||||||
|
is_shoppingcart/vendor/
|
||||||
@ -14,6 +14,7 @@ use Oksydan\IsShoppingcart\Configuration\ShoppingCartConfiguration;
|
|||||||
use Oksydan\IsShoppingcart\Hook\HookInterface;
|
use Oksydan\IsShoppingcart\Hook\HookInterface;
|
||||||
use PrestaShop\PrestaShop\Adapter\SymfonyContainer;
|
use PrestaShop\PrestaShop\Adapter\SymfonyContainer;
|
||||||
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
|
use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
|
||||||
|
use Symfony\Component\HttpFoundation\RedirectResponse;
|
||||||
|
|
||||||
class Is_shoppingcart extends Module
|
class Is_shoppingcart extends Module
|
||||||
{
|
{
|
||||||
@ -120,8 +121,9 @@ class Is_shoppingcart extends Module
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getContent(): void
|
public function getContent()
|
||||||
{
|
{
|
||||||
\Tools::redirectAdmin(SymfonyContainer::getInstance()->get('router')->generate('is_shoppingcart_controller'));
|
$url = SymfonyContainer::getInstance()->get('router')->generate('is_shoppingcart_controller');
|
||||||
|
return new RedirectResponse($url);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user