| @@ 59-71 (lines=13) @@ | ||
| 56 | * @param GeneratorHelper $helper |
|
| 57 | * @param EventDispatcherInterface $eventDispatcher |
|
| 58 | */ |
|
| 59 | public function __construct( |
|
| 60 | IConfig $config, |
|
| 61 | IPreview $previewManager, |
|
| 62 | IAppData $appData, |
|
| 63 | GeneratorHelper $helper, |
|
| 64 | EventDispatcherInterface $eventDispatcher |
|
| 65 | ) { |
|
| 66 | $this->config = $config; |
|
| 67 | $this->previewManager = $previewManager; |
|
| 68 | $this->appData = $appData; |
|
| 69 | $this->helper = $helper; |
|
| 70 | $this->eventDispatcher = $eventDispatcher; |
|
| 71 | } |
|
| 72 | ||
| 73 | /** |
|
| 74 | * Returns a preview of a file |
|
| @@ 83-93 (lines=11) @@ | ||
| 80 | * @param EventDispatcherInterface $eventDispatcher |
|
| 81 | * @param string $userId |
|
| 82 | */ |
|
| 83 | public function __construct(IConfig $config, |
|
| 84 | IRootFolder $rootFolder, |
|
| 85 | IAppData $appData, |
|
| 86 | EventDispatcherInterface $eventDispatcher, |
|
| 87 | $userId) { |
|
| 88 | $this->config = $config; |
|
| 89 | $this->rootFolder = $rootFolder; |
|
| 90 | $this->appData = $appData; |
|
| 91 | $this->eventDispatcher = $eventDispatcher; |
|
| 92 | $this->userId = $userId; |
|
| 93 | } |
|
| 94 | ||
| 95 | /** |
|
| 96 | * In order to improve lazy loading a closure can be registered which will be |
|