Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed schema-providers configuration #608

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion blog-api/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"yiisoft/factory": "^1.0",
"yiisoft/files": "^2.0",
"yiisoft/http": "^1.2",
"yiisoft/hydrator-validator": "dev-master",
"yiisoft/hydrator-validator": "^1.0",
"yiisoft/injector": "^1.0",
"yiisoft/input-http": "dev-master",
"yiisoft/log": "^2.0",
Expand Down
9 changes: 5 additions & 4 deletions blog-api/config/common/params.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
use App\Queue\LoggingAuthorizationHandler;
use Cycle\Database\Config\SQLite\FileConnectionConfig;
use Cycle\Database\Config\SQLiteDriverConfig;
use Cycle\Schema\Provider\SchemaProviderInterface;
use Cycle\Schema\Provider\PhpFileSchemaProvider;
use Cycle\Schema\Provider\Support\SchemaProviderPipeline;
use Yiisoft\ErrorHandler\Middleware\ErrorCatcher;
use Yiisoft\Router\Middleware\Router;
use Yiisoft\Yii\Cycle\Schema\Conveyor\AttributedSchemaConveyor;
use Yiisoft\Yii\Cycle\Schema\Provider\FromConveyorSchemaProvider;
use Yiisoft\Yii\Cycle\Schema\Provider\PhpFileSchemaProvider;
use Yiisoft\Yii\Cycle\Schema\SchemaProviderInterface;
use Yiisoft\Yii\Middleware\Locale;
use Yiisoft\Yii\Middleware\Subfolder;
use Yiisoft\Yii\Queue\Adapter\SynchronousAdapter;
Expand Down Expand Up @@ -87,7 +88,7 @@
],

/**
* SchemaProvider list for {@see \Yiisoft\Yii\Cycle\Schema\Provider\Support\SchemaProviderPipeline}
* SchemaProvider list for {@see SchemaProviderPipeline}
* Array of classname and {@see SchemaProviderInterface} object.
* You can configure providers if you pass classname as key and parameters as array:
* [
Expand All @@ -106,7 +107,7 @@
*/
'schema-providers' => [
// Uncomment next line to enable a Schema caching in the common cache
// \Yiisoft\Yii\Cycle\Schema\Provider\SimpleCacheSchemaProvider::class => ['key' => 'cycle-orm-cache-key'],
// \Cycle\Schema\Provider\SimpleCacheSchemaProvider::class => ['key' => 'cycle-orm-cache-key'],

// Store generated Schema in the file
PhpFileSchemaProvider::class => [
Expand Down
Loading