| @@ 85-89 (lines=5) @@ | ||
| 82 | */ |
|
| 83 | protected function triggerChangeHooks(IStorageConfig $oldStorage, IStorageConfig $newStorage) { |
|
| 84 | // if mount point changed, it's like a deletion + creation |
|
| 85 | if ($oldStorage->getMountPoint() !== $newStorage->getMountPoint()) { |
|
| 86 | $this->triggerHooks($oldStorage, Filesystem::signal_delete_mount); |
|
| 87 | $this->triggerHooks($newStorage, Filesystem::signal_create_mount); |
|
| 88 | return; |
|
| 89 | } |
|
| 90 | ||
| 91 | $userAdditions = \array_diff($newStorage->getApplicableUsers(), $oldStorage->getApplicableUsers()); |
|
| 92 | $userDeletions = \array_diff($oldStorage->getApplicableUsers(), $newStorage->getApplicableUsers()); |
|
| @@ 97-100 (lines=4) @@ | ||
| 94 | */ |
|
| 95 | protected function triggerChangeHooks(IStorageConfig $oldStorage, IStorageConfig $newStorage) { |
|
| 96 | // if mount point changed, it's like a deletion + creation |
|
| 97 | if ($oldStorage->getMountPoint() !== $newStorage->getMountPoint()) { |
|
| 98 | $this->triggerHooks($oldStorage, Filesystem::signal_delete_mount); |
|
| 99 | $this->triggerHooks($newStorage, Filesystem::signal_create_mount); |
|
| 100 | } |
|
| 101 | } |
|
| 102 | ||
| 103 | protected function getType() { |
|