yii2mod / yii2-hg
Mercurial helper
Installs: 102
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
This package is not auto-updated.
Last update: 2017-08-04 08:17:40 UTC
README
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist yii2mod/yii2-hg "*"
or add
"yii2mod/yii2-hg": "*"
to the require section of your composer.json.
Configuration
- Requires configured ErrorHandler from yii2mod/yii2-cron-log package
- Add the
SelfUpdateCommand
to theconsole.php
configuration file
'controllerMap' => [ 'selfupdate' => 'yii2mod\hg\commands\SelfUpdateCommand', ],
Usage
Just add the following code to your main layout
<?php if (YII_DEBUG): ?> <?php $this->title .= ' revision:' . \yii2mod\hg\helpers\HgHelper::getRevision(); ?> <?php endif; ?>