-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from 21TORR/rad
Document RAD bundle and doctrine change checker
- Loading branch information
Showing
5 changed files
with
45 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
slug: rad-updates | ||
title: RAD Bundle Updates | ||
authors: [jannik] | ||
tags: [rad] | ||
--- | ||
|
||
The [RAD bundle docs] were restructured and the [doctrine change checker] was documented. | ||
|
||
[RAD bundle docs]: /docs/php/symfony/rad | ||
[doctrine change checker]: /docs/php/symfony/rad/doctrine#change-checker |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
jannik: | ||
name: Jannik Zschiesche | ||
title: Head of Web | ||
title: Tech Lead Web | ||
url: https://github.com/apfelbox | ||
image_url: https://github.com/apfelbox.png |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# Doctrine | ||
|
||
|
||
## Change Checker | ||
|
||
The `DoctrineChangeChecker` heuristically checks the current `UnitOfWork` whether any entity updates are scheduled, that are not just `timeModified` updates. | ||
|
||
If only time modified updates are scheduled, you can decide to skip the next update steps, like deployments: | ||
|
||
```php | ||
use Torr\Rad\Doctrine\DoctrineChangeChecker; | ||
|
||
function test (DoctrineChangeChecker $changeChecker) | ||
{ | ||
if ($changeChecker->hasContentChanged()) | ||
{ | ||
$this->triggerDeployment(); | ||
} | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Security | ||
|
||
## Abilities | ||
|
||
Abilities act liker roles, but start with a `CAN_` prefix. | ||
The main idea is that the app only checks abilities and roles (`ROLE_*`) only combine abilities and other roles (via the role hierarchy). | ||
|
||
The RAD bundle provides automatic integration of security voters to support `CAN_` abilities. |