add admin controller and many updates

This commit is contained in:
Antonio Ramirez
2016-12-04 23:10:06 +01:00
parent abe959d8cc
commit bda69d38af
20 changed files with 601 additions and 117 deletions

View File

@ -8,8 +8,11 @@ use Yii;
use yii\di\Container;
/**
*
* @property-read Container $di
* @property-ready Da\User\Helper\AuthHelper $authHelper
* @property-ready Da\User\Helper\AuthHelper $auth
* @property-ready Da\User\Helper\ClassMapHelper $classMap
*
*/
trait ContainerTrait
{
@ -38,17 +41,17 @@ trait ContainerTrait
/**
* @return \Da\User\Helper\AuthHelper
*/
public function getAuthHelper()
public function getAuth()
{
return Yii::$container->get(AuthHelper::class);
return $this->getDi()->get(AuthHelper::class);
}
/**
* @return \Da\User\Helper\ClassMapHelper
*/
public function getClassMapHelper()
public function getClassMap()
{
return Yii::$container->get(ClassMapHelper::class);
return $this->getDi()->get(ClassMapHelper::class);
}
}