Created
April 20, 2014 01:37
-
-
Save schmunk42/11102641 to your computer and use it in GitHub Desktop.
Yii 2 module bootstrap
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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