Good day! Tell me please. Everything seems to be done according to the manual, but I don’t understand something. I used to work with yii 1, now I may not quite understand the use of use.
Climb error Class 'yii \ authclient \ widgets \ AuthChoice' not found
composer.json
"require": { "php": ">=5.4.0", "yiisoft/yii2": ">=2.0.5", "yiisoft/yii2-bootstrap": "*", "yiisoft/yii2-swiftmailer": "*", "yiisoft/yii2-authclient": "*" }, config / web.php
'authClientCollection' => [ 'class' => 'yii\authclient\Collection', 'clients' => [ 'facebook' => [ 'class' => 'yii\authclient\clients\Facebook', 'authUrl' => 'https://www.facebook.com/dialog/oauth?display=popup', 'clientId' => '***', 'clientSecret' => '***', ], ], ], view / index.php
use yii\authclient\widgets\AuthChoice; <?=yii\authclient\widgets\AuthChoice::widget([ 'baseAuthUrl' => ['site/auth'], 'popupMode' => true, ]); ?> the file itself is available: /vendor/yiisoft/yii2-authclient/widgets/AuthChoice.php