preparing extension for publishing wip
This commit is contained in:
@ -25,6 +25,10 @@ use yii\console\Application as ConsoleApplication;
|
||||
use yii\i18n\PhpMessageSource;
|
||||
use yii\web\Application as WebApplication;
|
||||
|
||||
/**
|
||||
* Bootstrap class of the yii2-usuario extension. Configures container services, initializes translations,
|
||||
* builds class map, and does the other setup actions participating in the application bootstrap process.
|
||||
*/
|
||||
class Bootstrap implements BootstrapInterface
|
||||
{
|
||||
/**
|
||||
@ -317,7 +321,7 @@ class Bootstrap implements BootstrapInterface
|
||||
$mapping = array_merge($defaults, $userClassMap);
|
||||
|
||||
foreach ($mapping as $name => $definition) {
|
||||
$map[$this->getRoute($routes, $name)."\\$name"] = $definition;
|
||||
$map[$this->getRoute($routes, $name) . "\\$name"] = $definition;
|
||||
}
|
||||
|
||||
return $map;
|
||||
|
||||
@ -12,8 +12,12 @@
|
||||
namespace Da\User;
|
||||
|
||||
use Da\User\Contracts\MailChangeStrategyInterface;
|
||||
use Da\User\Service\MailService;
|
||||
use yii\base\Module as BaseModule;
|
||||
|
||||
/**
|
||||
* This is the main module class of the yii2-usuario extension.
|
||||
*/
|
||||
class Module extends BaseModule
|
||||
{
|
||||
/**
|
||||
@ -41,7 +45,7 @@ class Module extends BaseModule
|
||||
*/
|
||||
public $allowPasswordRecovery = true;
|
||||
/**
|
||||
* @var bool Whether user can remove his account
|
||||
* @var bool whether user can remove his account
|
||||
*/
|
||||
public $allowAccountDelete = false;
|
||||
/**
|
||||
@ -87,6 +91,7 @@ class Module extends BaseModule
|
||||
public $blowfishCost = 10;
|
||||
/**
|
||||
* @var array the class map. How the container should load specific classes
|
||||
* @see Bootstrap::buildClassMap() for more details
|
||||
*/
|
||||
public $classMap = [];
|
||||
|
||||
@ -103,5 +108,8 @@ class Module extends BaseModule
|
||||
'settings/<action:\w+>' => 'settings/<action>',
|
||||
];
|
||||
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
public $viewPath = '@Da/User/resources/views';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user