public function __construct($AppName, IRequest $request, Updater $updater, IConfig $settings, StatusService $statusService) { parent::__construct($AppName, $request); $this->updater = $updater; $this->settings = $settings; $this->statusService = $statusService; }
public function __construct($AppName, IRequest $request, ItemService $itemService, $UserId) { parent::__construct($AppName, $request); $this->itemService = $itemService; $this->userId = $UserId; $this->serializer = new EntityApiSerializer('items'); }
public function __construct($appName, IRequest $request, $userId, IDb $db) { parent::__construct($appName, $request); $this->userId = $userId; $this->db = $db; $this->request = $request; }
/** * @param string $appName * @param IRequest $request * @param UserList $userList */ public function __construct($appName, IRequest $request, UserList $userList) { parent::__construct($appName, $request, 'GET', 'Authorization, Content-Type, Accept', 1728000); $this->appName = $appName; $this->request = $request; $this->userList = $userList; }
public function __construct($appName, IRequest $request, IL10N $l, RequestMapper $requestMapper, $userId) { parent::__construct($appName, $request, 'GET, POST'); $this->l = $l; $this->requestMapper = $requestMapper; $this->userId = $userId; }
/** * Constructor * * @param string $appName * @param IRequest $request * @param ConfigService $configService * @param PreviewService $previewService * @param ILogger $logger */ public function __construct($appName, IRequest $request, ConfigService $configService, PreviewService $previewService, ILogger $logger) { parent::__construct($appName, $request); $this->configService = $configService; $this->previewService = $previewService; $this->logger = $logger; }
public function __construct($appName, IRequest $request, LocationMapper $locationMapper, DeviceMapper $deviceMapper, $userId) { parent::__construct($appName, $request); $this->locationMapper = $locationMapper; $this->deviceMapper = $deviceMapper; $this->userId = $userId; }
/** * @param string $appName * @param IRequest $request * @param GetStorageHistory $getStorageHistory * @param GetActivityHistory $getActivityHistory */ public function __construct($appName, IRequest $request, GetStorageHistory $getStorageHistory, GetActivityHistory $getActivityHistory) { parent::__construct($appName, $request, 'GET', 'Authorization, Content-Type, Accept', 1728000); $this->appName = $appName; $this->request = $request; $this->getStorageHistory = $getStorageHistory; $this->getActivityHistory = $getActivityHistory; }
public function __construct($AppName, IRequest $request, FeedService $feedService, ItemService $itemService, ILogger $logger, $UserId, $LoggerParameters) { parent::__construct($AppName, $request); $this->feedService = $feedService; $this->itemService = $itemService; $this->userId = $UserId; $this->logger = $logger; $this->loggerParams = $LoggerParameters; $this->serializer = new EntityApiSerializer('feeds'); }
/** * Constructor * * @param string $appName * @param IRequest $request * @param IURLGenerator $urlGenerator * @param SearchFolderService $searchFolderService * @param ConfigService $configService * @param SearchMediaService $searchMediaService * @param DownloadService $downloadService * @param ILogger $logger */ public function __construct($appName, IRequest $request, IURLGenerator $urlGenerator, SearchFolderService $searchFolderService, ConfigService $configService, SearchMediaService $searchMediaService, DownloadService $downloadService, ILogger $logger) { parent::__construct($appName, $request); $this->urlGenerator = $urlGenerator; $this->searchFolderService = $searchFolderService; $this->configService = $configService; $this->searchMediaService = $searchMediaService; $this->downloadService = $downloadService; $this->logger = $logger; }
/** * constructor of the controller * @param string $appName the name of the app * @param IRequest $request an instance of the request * @param string $corsMethods comma separated string of HTTP verbs which * should be allowed for websites or webapps when calling your API, defaults to * 'PUT, POST, GET, DELETE, PATCH' * @param string $corsAllowedHeaders comma seperated string of HTTP headers * which should be allowed for websites or webapps when calling your API, * defaults to 'Authorization, Content-Type, Accept' * @param int $corsMaxAge number in seconds how long a preflighted OPTIONS * request should be cached, defaults to 1728000 seconds * @since 8.1.0 */ public function __construct($appName, IRequest $request, $corsMethods = 'PUT, POST, GET, DELETE, PATCH', $corsAllowedHeaders = 'Authorization, Content-Type, Accept', $corsMaxAge = 1728000) { parent::__construct($appName, $request, $corsMethods, $corsAllowedHeaders, $corsMaxAge); $this->registerResponder('json', function ($data) { return $this->buildOCSResponse('json', $data); }); $this->registerResponder('xml', function ($data) { return $this->buildOCSResponse('xml', $data); }); }
/** * Constructor * * @param string $appName * @param IRequest $request * @param IURLGenerator $urlGenerator * @param ThumbnailService $thumbnailService * @param PreviewService $previewService * @param DownloadService $downloadService * @param EventSource $eventSource * @param ILogger $logger */ public function __construct($appName, IRequest $request, IURLGenerator $urlGenerator, ThumbnailService $thumbnailService, PreviewService $previewService, DownloadService $downloadService, EventSource $eventSource, ILogger $logger) { parent::__construct($appName, $request); $this->urlGenerator = $urlGenerator; $this->thumbnailService = $thumbnailService; $this->previewService = $previewService; $this->downloadService = $downloadService; $this->eventSource = $eventSource; $this->logger = $logger; }
/** * @param string $appName * @param IRequest $request * @param ChartService $chartService */ public function __construct($appName, IRequest $request, ChartService $chartService) { $this->chartService = $chartService; parent::__construct( $appName, $request, 'GET', 'Authorization, Content-Type, Accept', 1728000 ); }
public function __construct($AppName, IRequest $request, SymLinkService $service, $UserId) { parent::__construct($AppName, $request); // Can add the following to the above constructor if you // want to force these options //'PUT, POST, GET, DELETE, PATCH', //'Authorization, Content-Type, Accept', //1728000 $this->service = $service; $this->userId = $UserId; $this->AppName = $AppName; }
public function __construct($appName, IRequest $request){ parent::__construct($appName, $request); }
/** * @param string $AppName * @param IRequest $request * @param StatisticService $service */ public function __construct($AppName, IRequest $request, StatisticService $service) { parent::__construct($AppName, $request); $this->service = $service; }
public function __construct($appName, IRequest $request, IDb $db, Manager $userManager) { parent::__construct($appName, $request); $this->db = $db; $this->userManager = $userManager; }
public function __construct($AppName, IRequest $request, IUserSession $userSession, IRootFolder $rootFolder) { parent::__construct($AppName, $request); $this->userSession = $userSession; $this->rootFolder = $rootFolder; }
public function __construct($appName, IRequest $request) { parent::__construct($appName, $request); $this->backend = new Backend(); }
/** * @param string $AppName * @param string $userId * @param IRequest $request */ public function __construct($AppName, $userId, IRequest $request) { $this->user = $userId; parent::__construct($AppName, $request); }
public function __construct($appName, IRequest $request, FavoriteMapper $favoriteMapper, $userId) { parent::__construct($appName, $request); $this->favoriteMapper = $favoriteMapper; $this->userId = $userId; }
public function __construct($AppName, IRequest $request, FlightService $service, $UserId) { parent::__construct($AppName, $request); $this->service = $service; $this->userId = $UserId; }