Skip to content

Commit c54c905

Browse files
update readme
1 parent cef91fb commit c54c905

2 files changed

Lines changed: 41 additions & 1 deletion

File tree

README.md

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,43 @@ Configuration app
2323

2424
```php
2525

26+
'components' =>
27+
[
28+
'authClientCollection' =>
29+
[
30+
'class' => 'skeeks\cms\authclient\CmsAuthClientCollection',
31+
'clients' => [
32+
//clients configs
33+
]
34+
],
35+
36+
'authClientSettings' =>
37+
[
38+
//clients configs in a database
39+
'class' => 'skeeks\cms\authclient\CmsAuthClientSettings',
40+
],
41+
42+
'i18n' => [
43+
'translations' =>
44+
[
45+
'skeeks/authclient' => [
46+
'class' => 'yii\i18n\PhpMessageSource',
47+
'basePath' => '@skeeks/cms/authclient/messages',
48+
'fileMap' => [
49+
'skeeks/authclient' => 'main.php',
50+
],
51+
]
52+
]
53+
],
54+
],
55+
56+
'modules' =>
57+
[
58+
'authclient' => [
59+
'class' => 'skeeks\cms\authclient\CmsAuthclientModule',
60+
]
61+
]
62+
2663
```
2764

2865
___

config/main.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,14 @@
66
'authClientCollection' =>
77
[
88
'class' => 'skeeks\cms\authclient\CmsAuthClientCollection',
9-
'clients' => []
9+
'clients' => [
10+
//clients configs
11+
]
1012
],
1113

1214
'authClientSettings' =>
1315
[
16+
//clients configs in a database
1417
'class' => 'skeeks\cms\authclient\CmsAuthClientSettings',
1518
],
1619

0 commit comments

Comments
 (0)