| @@ 54-62 (lines=9) @@ | ||
| 51 | /** | |
| 52 | * @return FilesystemInterface|null | |
| 53 | */ | |
| 54 | public function getFileSystem() | |
| 55 |     { | |
| 56 |         if (!empty($this->eventDispatcher)) { | |
| 57 | $fileSystemEvent = new FileSystemEvent($this); | |
| 58 | $this->eventDispatcher->dispatch(FileSystemEvents::FILE_SYSTEM_FACTORY_GET, $fileSystemEvent); | |
| 59 | } | |
| 60 | ||
| 61 | return $this->fileSystem; | |
| 62 | } | |
| 63 | ||
| 64 | public function getAdapter() | |
| 65 |     { | |
| @@ 76-83 (lines=8) @@ | ||
| 73 | /** | |
| 74 | * @param FilesystemInterface $fileSystem | |
| 75 | */ | |
| 76 | public function setFileSystem(FilesystemInterface $fileSystem) | |
| 77 |     { | |
| 78 |         if (!empty($this->eventDispatcher)) { | |
| 79 | $fileSystemEvent = new FileSystemEvent($this); | |
| 80 | $this->eventDispatcher->dispatch(FileSystemEvents::FILE_SYSTEM_FACTORY_SET, $fileSystemEvent); | |
| 81 | } | |
| 82 | $this->fileSystem = $fileSystem; | |
| 83 | } | |
| 84 | ||
| 85 | /** | |
| 86 | * @param $path | |