Provides an application component for storing persistent state information (key-value pairs) in the database.
Run migrations from your project
php yii migrate --interactive=0 --migrationPath=@vendor/opus-online/yii2-state/migrations
Add yii2-state as a system component in your common main.php
'systemState' => [
'class' => '\opus\state\MysqlState',
'defaults' => [ // optional
'shopAccessEnabled' => true,
'siteAccessEnabled' => true,
]
],
Run composer install
and then in the project root directory
./vendor/bin/phpunit
Comments