for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace carono\exchange1c;
use carono\exchange1c\helpers\ModuleHelper;
use yii\base\Application;
use yii\base\BootstrapInterface;
class Bootstrap implements BootstrapInterface
{
/**
* Bootstrap method to be called during application bootstrap stage.
*
* @param Application $app the application currently running
*/
public function bootstrap($app)
__construct()
if ($id = ModuleHelper::getModuleNameByClass()) {
if (\Yii::$app->getModule($id)->bootstrapUrlRule) {
\Yii::$app->urlManager->addRules([new UrlRule]);
}