芝麻web文件管理V1.00
编辑当前文件:/home/mgatv524/public_html/sommatv/lib/Service/ModuleService.php
app = $app; $this->store = $store; $this->pool = $pool; $this->logService = $log; $this->configService = $config; $this->dateService = $date; $this->sanitizerService = $sanitizer; $this->dispatcher = $dispatcher; } /** * @inheritdoc */ public function get($module, $moduleFactory, $mediaFactory, $dataSetFactory, $dataSetColumnFactory, $transitionFactory, $displayFactory, $commandFactory, $scheduleFactory, $permissionFactory, $userGroupFactory) { $object = $this->getByClass($module->class, $moduleFactory, $mediaFactory, $dataSetFactory, $dataSetColumnFactory, $transitionFactory, $displayFactory, $commandFactory, $scheduleFactory, $permissionFactory, $userGroupFactory); $object->setModule($module); return $object; } /** * @inheritdoc */ public function getByClass($className, $moduleFactory, $mediaFactory, $dataSetFactory, $dataSetColumnFactory, $transitionFactory, $displayFactory, $commandFactory, $scheduleFactory, $permissionFactory, $userGroupFactory) { if (!\class_exists($className)) throw new NotFoundException(__('Class %s not found', $className)); /* @var \Xibo\Widget\ModuleWidget $object */ $object = new $className( $this->app, $this->store, $this->pool, $this->logService, $this->configService, $this->dateService, $this->sanitizerService, $this->dispatcher, $moduleFactory, $mediaFactory, $dataSetFactory, $dataSetColumnFactory, $transitionFactory, $displayFactory, $commandFactory, $scheduleFactory, $permissionFactory, $userGroupFactory ); return $object; } }