Commit 00cf987a authored by Stefan Golban's avatar Stefan Golban
Browse files

update namespace

parent ebed01bc
......@@ -27,7 +27,7 @@ Please read and follow the instructions in the [Contributing guide](CONTRIBUTING
Via [Composer](http://getcomposer.org/download/)
```
composer require lajax/yii2-translate-manager
composer require esempla/yii2-translatemanager
```
### Migration
......@@ -35,27 +35,9 @@ composer require lajax/yii2-translate-manager
Run the following command in Terminal for database migration:
```
yii migrate/up --migrationPath=@vendor/lajax/yii2-translate-manager/migrations
```
Or use the [namespaced migration](http://www.yiiframework.com/doc-2.0/guide-db-migrations.html#namespaced-migrations) (requires at least Yii 2.0.10):
php yii migrate/up --migrationPath=@vendor/esempla/yii2-translatemanager/migrations
```
```php
// Add namespace to console config:
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationNamespaces' => [
'translatemanager\migrations\namespaced',
],
],
],
```
Then run:
```
yii migrate/up
```
### Config
......
......@@ -24,7 +24,7 @@
},
"autoload": {
"psr-4": {
"\translatemanager\\": ""
"translatemanager\\": ""
}
},
"scripts": {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment