yii2mod/yii2-hg

This package is abandoned and no longer maintained. No replacement package was suggested.

Mercurial helper

Installs: 102

Dependents: 0

Suggesters: 0

Stars: 4

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0 2016-05-13 13:37 UTC

README

Latest Stable Version Total Downloads License

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

  1. Requires configured ErrorHandler from yii2mod/yii2-cron-log package
  2. Add the SelfUpdateCommand to the console.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; ?>