/home/sharedstore/public_html/prestashop.sharedstore.ma/controllers/admin
Edit: /home/sharedstore/public_html/prestashop.sharedstore.ma/controllers/admin/DummyAdminController.php (2408B)
* @copyright Since 2007 PrestaShop SA and Contributors
* @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0)
*/
declare(strict_types=1);
use PrestaShop\PrestaShop\Adapter\SymfonyContainer;
use Symfony\Component\DependencyInjection\ContainerInterface;
/**
* This class is used only because some parts of the Back Office require a Controller
* to function (like the NullDispatcher).
*/
class DummyAdminControllerCore extends AdminController
{
public function __construct()
{
parent::__construct();
$this->id = 0;
$this->controller_type = 'dummy';
}
public function checkAccess()
{
return true;
}
public function viewAccess($disable = false)
{
return true;
}
public function postProcess()
{
return true;
}
public function display()
{
return '';
}
public function setMedia($isNewTheme = false)
{
return null;
}
public function initHeader()
{
return '';
}
public function initContent()
{
return '';
}
public function initCursedPage()
{
return '';
}
public function initFooter()
{
return '';
}
protected function redirect()
{
return '';
}
/**
* @return ContainerInterface|null
*/
protected function buildContainer()
{
return SymfonyContainer::getInstance();
}
}