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