*/ class CreateItemDirectory extends InstallAction { /** * @param $params */ public function __invoke($params) { $fsService = $this->getServiceLocator()->get(FileSystemService::SERVICE_ID); if (!$fsService->hasDirectory('itemDirectory')) { $source = $fsService->createFileSystem('itemDirectory', 'taoItems/itemData'); $this->registerService(FileSystemService::SERVICE_ID, $fsService); } \taoItems_models_classes_ItemsService::singleton()->setDefaultFilesourceId('itemDirectory'); } }