Skip to content

Commit

Permalink
added UPGRADE.md
Browse files Browse the repository at this point in the history
  • Loading branch information
dmeroff committed Oct 12, 2014
1 parent 4166d56 commit a16e4b1
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions UPGRADE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
Upgrading instructions for Yii2-user
====================================

The following upgrading instructions are cumulative. That is, if you want to upgrade from version A to version C and
there is version B between A and C, you need to following the instructions for both A and B.

Upgrade from Yii2-user 0.8.0
----------------------------

- `webUserClass` module option has been dropped. If you are using custom user component you should set in `user`
application component configuration:

```php
'components' => [
'user' => [
'class' => 'your\web\User',
],
],
```

- ModelManager component has been dropped. If you are using custom models you should set them via `modelMap` module's
property:

```php
'modules' => [
'user' => [
'class' => 'dektrium\user\Module',
'modelMap' => [
'User' => 'your\model\User',
'Profile' => 'your\model\Profile',
...
],
],
],
```

0 comments on commit a16e4b1

Please sign in to comment.