Skip to content

Commit

Permalink
Implement entity schema manager in module
Browse files Browse the repository at this point in the history
  • Loading branch information
PululuK committed Feb 29, 2024
1 parent 5bb452c commit 8c859f8
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions classes/module/Module.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@
use PrestaShop\PrestaShop\Core\Module\Legacy\ModuleInterface;
use PrestaShop\PrestaShop\Core\Module\WidgetInterface;
use PrestaShop\PrestaShop\Core\Security\Permission;
use PrestaShop\PrestaShop\Core\Util\Database\EntitySchemaManager;
use PrestaShop\TranslationToolsBundle\Translation\Helper\DomainHelper;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException;
Expand Down Expand Up @@ -3497,6 +3498,16 @@ public static function resetStaticCache()
static::$_INSTANCE = [];
Cache::clean('Module::isEnabled*');
}

/**
* Return entity schema manager service
*
* @return EntitySchemaManager
*/
public function getEntitySchemaManager(): EntitySchemaManager
{
return $this->get('prestashop.core.util.database.entity_cchema_manager');
}
}

function ps_module_version_sort($a, $b)
Expand Down

0 comments on commit 8c859f8

Please sign in to comment.