add events + more wip classes

This commit is contained in:
Antonio Ramirez
2016-12-04 15:53:09 +01:00
parent 3e16d24048
commit bd06010018
21 changed files with 496 additions and 18 deletions

View File

@ -19,6 +19,20 @@ trait ContainerTrait
return Yii::$container;
}
/**
* Gets a class from the container.
*
* @param string $class he class name or an alias name (e.g. `foo`) that was previously registered via [[set()]]
* or [[setSingleton()]].
* @param array $params
*
* @return object
*/
public function make($class, $params = [])
{
return $this->getDi()->get($class, $params);
}
/**
* @return \Da\User\Helper\AuthHelper
*/