pikl-cz/config-params
Composer 安装命令:
composer require pikl-cz/config-params
包简介
Gettery pro informace z contextu nette aplikace.
README 文档
README
Gettery pro zjištění v jakých módech je nette aplikace.
instalace
composer require pikl-cz/config-params
implementace v config.neon
extensions:
- Pikl\DI\ConfigParamsExtension
použití
use Pikl\ConfigParams;
class BasePresenter extends Nette\Application\UI\Presenter {
/** @var Pikl\ConfigParams */
public $configParams;
public function injectConfigParams(ConfigParams $configParams) {
$this->configParams = $configParams;
}
function startup() {
parent::startup();
$this->template->debugMode = $this->configParams->getDebugMode();
}
}
统计信息
- 总下载量: 161
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-05-09