minor cleanups
This commit is contained in:
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Da\User;
|
namespace Da\User;
|
||||||
|
|
||||||
use Da\User\Helper\ClassMapHelper;
|
use Da\User\Helper\ClassMapHelper;
|
||||||
@ -21,7 +20,6 @@ class Bootstrap implements BootstrapInterface
|
|||||||
*/
|
*/
|
||||||
public function bootstrap($app)
|
public function bootstrap($app)
|
||||||
{
|
{
|
||||||
|
|
||||||
if ($app->hasModule('user') && $app->getModule('user') instanceof Module) {
|
if ($app->hasModule('user') && $app->getModule('user') instanceof Module) {
|
||||||
$map = $this->buildClassMap($app->getModule('user')->classMap);
|
$map = $this->buildClassMap($app->getModule('user')->classMap);
|
||||||
$this->initContainer($app,$map);
|
$this->initContainer($app,$map);
|
||||||
@ -49,8 +47,6 @@ class Bootstrap implements BootstrapInterface
|
|||||||
{
|
{
|
||||||
$di = Yii::$container;
|
$di = Yii::$container;
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|
||||||
// events
|
// events
|
||||||
$di->set(Event\FormEvent::class);
|
$di->set(Event\FormEvent::class);
|
||||||
$di->set(Event\ProfileEvent::class);
|
$di->set(Event\ProfileEvent::class);
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
namespace Da\User;
|
namespace Da\User;
|
||||||
|
|
||||||
use Da\User\Contracts\MailChangeStrategyInterface;
|
use Da\User\Contracts\MailChangeStrategyInterface;
|
||||||
|
|||||||
Reference in New Issue
Block a user