minor cleanups

This commit is contained in:
resurtm
2016-12-13 13:17:38 +06:00
parent 04d040da81
commit ab7665eea5
2 changed files with 0 additions and 5 deletions

View File

@ -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);

View File

@ -1,5 +1,4 @@
<?php <?php
namespace Da\User; namespace Da\User;
use Da\User\Contracts\MailChangeStrategyInterface; use Da\User\Contracts\MailChangeStrategyInterface;