M
M
myxasa2017-03-15 12:23:51
Yii
myxasa, 2017-03-15 12:23:51

How to get the current user in the controller - dependency injection?

How to get the current user by normal. Without Yii::$app->user ?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Fedorov, 2017-03-15
@qonand

You answered your own question - in this case you need to use Dependency Injection

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question