prestashop / module-lib-cache-directory-provider
用于PrestaShop模块的缓存目录提供程序
v1.0.0
2020-09-08 14:13 UTC
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ~5.7
This package is auto-updated.
Last update: 2024-09-08 22:51:24 UTC
README
此仓库为PrestaShop模块提供缓存目录。
先决条件
您应在PrestaShop环境和至少PHP 5.6.0的环境中安装此库。
安装
composer require prestashop/module-lib-cache-directory-provider
当此项目成功添加到您的依赖项中时,您可以将新的CacheDirectoryProvider添加到您的模块中并使用它。
使用方法
要使用此库,很简单
$cacheDirectoryProvider = new CacheDirectoryProvider(
_PS_VERSION_,
_PS_ROOT_DIR_,
_PS_MODE_DEV_
);
使用getPath()函数,您可以获取您模块的缓存路径
$cacheDirectoryProvider->getPath();