Skip to content

Instantly share code, notes, and snippets.

@schmunk42
Created April 20, 2014 01:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schmunk42/11102641 to your computer and use it in GitHub Desktop.
Save schmunk42/11102641 to your computer and use it in GitHub Desktop.
Yii 2 module bootstrap
<?php
/**
* @link http://www.diemeisterei.de/
* @copyright Copyright (c) 2014 diemeisterei GmbH, Stuttgart
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace schmunk42\sakila;
use yii\base\BootstrapInterface;
/**
* Class Bootstrap
* @package schmunk42\sakila
* @author Tobias Munk <tobias@diemeisterei.de>
*/
class Bootstrap implements BootstrapInterface {
/**
* @inheritdoc
*/
public function bootstrap($app)
{
$app->setModule(
'sakila',
[
'class' => 'schmunk42\sakila\Module',
]
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment