@@ 123-130 (lines=8) @@ | ||
120 | /** |
|
121 | * {@inheritdoc} |
|
122 | */ |
|
123 | public function remove(File $aFile) |
|
124 | { |
|
125 | unset($this->files[$aFile->id()->id()]); |
|
126 | ||
127 | if ($this->eventBus instanceof FileEventBus) { |
|
128 | $this->handle($aFile->events()); |
|
129 | } |
|
130 | } |
|
131 | } |
|
132 | ||
@@ 111-118 (lines=8) @@ | ||
108 | /** |
|
109 | * {@inheritdoc} |
|
110 | */ |
|
111 | public function persist(File $aFile) |
|
112 | { |
|
113 | $this->files[$aFile->id()->id()] = $aFile; |
|
114 | ||
115 | if ($this->eventBus instanceof FileEventBus) { |
|
116 | $this->handle($aFile->events()); |
|
117 | } |
|
118 | } |
|
119 | ||
120 | /** |
|
121 | * {@inheritdoc} |