| Conditions | 1 |
| Paths | 1 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function handle(RemoveRoleFromGroupCommand $command) |
||
| 20 | { |
||
| 21 | $role = $this->roleRepository->read($command->roleId); |
||
| 22 | $group = $this->groupRepository->read($command->groupId); |
||
| 23 | |||
| 24 | $this->groupRepository->removeRoleFromGroup($role, $group); //TODO: remove must use ID and GroupRoleRepository |
||
| 25 | |||
| 26 | $group->removeRole($role); |
||
| 27 | } |
||
| 29 |