Environment module manages environment (DRAFT, LIVE) for entities.
- Add the module using composer:
"matacms/matacms-environment": "~1.0.0"
- Run migrations
php yii migrate/up --migrationPath=@vendor/matacms/matacms-environment/migrations
- Added migration (alter DocumentId from 64 to 128 characters)
- Updates for matacms\environment\helpers\Html
- Bug fix
- Changed ActiveQuery::EVENT_BEFORE_PREPARE_STATEMENT to run only for models with EnvironmentBehavior
- Added "Submit for review" button if user doesn't have any roles (rbac) assigned
- Added sending notification email to "reviewer"
- Fixed dependency on matacms-base ~1.1-alpha
- Added dependency on matacms-base ~1.0-alpha
- Updates for console application
- Bug fixes
- Added check for console application in Bootstrap
- Added handling of logged-in users to get latest versions of records
- Added dependency on matacms-base ~1.0.7-alpha where [[ActiveQuery::EVENT_BEFORE_PREPARE_STATEMENT]] was added
- Completely rewrote getting live versions, from iterating through fetched models to injecting conditions in SQL command
- Code cleanup, especially in [[Bootstrap]]
- Added dummy unit test
- Initial release.