Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
5a8517f1
Commit
5a8517f1
authored
Dec 26, 2013
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor doc fix.
parent
c8960168
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
README.md
extensions/yii/authclient/README.md
+5
-6
Choice.php
extensions/yii/authclient/widgets/Choice.php
+2
-3
No files found.
extensions/yii/authclient/README.md
View file @
5a8517f1
...
...
@@ -21,7 +21,7 @@ or add
"yiisoft/yii2-authclient"
:
"*"
```
to the
require
section of your composer.json.
to the
`require`
section of your composer.json.
Usage & Documentation
...
...
@@ -51,7 +51,7 @@ You need to setup auth client collection application component:
]
```
Then you need to a
pply
[
[yii\authclient\AuthAction
]
] to some of your web controllers:
Then you need to a
dd
[
[yii\authclient\AuthAction
]
] to some of your web controllers:
```
class SiteController extends Controller
...
...
@@ -68,7 +68,7 @@ class SiteController extends Controller
public function successCallback($client)
{
$atributes = $client->getUserAttributes();
$at
t
ributes = $client->getUserAttributes();
// user login or signup comes here
}
}
...
...
@@ -79,5 +79,5 @@ You may use [[yii\authclient\widgets\Choice]] to compose auth client selection:
```
<?= yii\authclient\Choice::widget([
'baseAuthUrl' => ['site/auth']
]); ?>
```
\ No newline at end of file
]) ?>
```
extensions/yii/authclient/widgets/Choice.php
View file @
5a8517f1
...
...
@@ -56,7 +56,7 @@ class Choice extends Widget
private
$_clients
;
/**
* @var string name of the auth client collection application component.
* This component will be used to fetch
{@link services}
value if it is not set.
* This component will be used to fetch
services
value if it is not set.
*/
public
$clientCollection
=
'authClientCollection'
;
/**
...
...
@@ -226,4 +226,4 @@ class Choice extends Widget
}
echo
Html
::
endTag
(
'div'
);
}
}
\ No newline at end of file
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment