| @@ 120-158 (lines=39) @@ | ||
| 117 | */ |
|
| 118 | private $userService; |
|
| 119 | ||
| 120 | public function __construct( |
|
| 121 | RepositoryInterface $repository, |
|
| 122 | BookmarkServiceInterface $bookmarkService, |
|
| 123 | ContentServiceInterface $contentService, |
|
| 124 | ContentTypeServiceInterface $contentTypeService, |
|
| 125 | FieldTypeServiceInterface $fieldTypeService, |
|
| 126 | LanguageServiceInterface $languageService, |
|
| 127 | LocationServiceInterface $locationService, |
|
| 128 | NotificationServiceInterface $notificationService, |
|
| 129 | ObjectStateServiceInterface $objectStateService, |
|
| 130 | RoleServiceInterface $roleService, |
|
| 131 | SearchServiceInterface $searchService, |
|
| 132 | SectionServiceInterface $sectionService, |
|
| 133 | TrashServiceInterface $trashService, |
|
| 134 | URLAliasServiceInterface $urlAliasService, |
|
| 135 | URLServiceInterface $urlService, |
|
| 136 | URLWildcardServiceInterface $urlWildcardService, |
|
| 137 | UserPreferenceServiceInterface $userPreferenceService, |
|
| 138 | UserServiceInterface $userService |
|
| 139 | ) { |
|
| 140 | $this->repository = $repository; |
|
| 141 | $this->bookmarkService = $bookmarkService; |
|
| 142 | $this->contentService = $contentService; |
|
| 143 | $this->contentTypeService = $contentTypeService; |
|
| 144 | $this->fieldTypeService = $fieldTypeService; |
|
| 145 | $this->languageService = $languageService; |
|
| 146 | $this->locationService = $locationService; |
|
| 147 | $this->notificationService = $notificationService; |
|
| 148 | $this->objectStateService = $objectStateService; |
|
| 149 | $this->roleService = $roleService; |
|
| 150 | $this->searchService = $searchService; |
|
| 151 | $this->sectionService = $sectionService; |
|
| 152 | $this->trashService = $trashService; |
|
| 153 | $this->urlAliasService = $urlAliasService; |
|
| 154 | $this->urlService = $urlService; |
|
| 155 | $this->urlWildcardService = $urlWildcardService; |
|
| 156 | $this->userPreferenceService = $userPreferenceService; |
|
| 157 | $this->userService = $userService; |
|
| 158 | } |
|
| 159 | ||
| 160 | public function getCurrentUser(): User |
|
| 161 | { |
|
| @@ 176-216 (lines=41) @@ | ||
| 173 | * @param \eZ\Publish\API\Repository\NotificationService $notificationService |
|
| 174 | * @param \eZ\Publish\Core\SignalSlot\UserPreferenceService $userPreferenceService |
|
| 175 | */ |
|
| 176 | public function __construct( |
|
| 177 | RepositoryInterface $repository, |
|
| 178 | SignalDispatcher $signalDispatcher, |
|
| 179 | ContentService $contentService, |
|
| 180 | ContentTypeService $contentTypeService, |
|
| 181 | FieldTypeService $fieldTypeService, |
|
| 182 | RoleService $roleService, |
|
| 183 | ObjectStateService $objectStateService, |
|
| 184 | URLWildcardService $urlWildcardService, |
|
| 185 | URLAliasService $urlAliasService, |
|
| 186 | UserService $userService, |
|
| 187 | SearchService $searchService, |
|
| 188 | SectionService $sectionService, |
|
| 189 | TrashService $trashService, |
|
| 190 | LocationService $locationService, |
|
| 191 | LanguageService $languageService, |
|
| 192 | URLService $urlService, |
|
| 193 | BookmarkService $bookmarkService, |
|
| 194 | NotificationService $notificationService, |
|
| 195 | UserPreferenceService $userPreferenceService |
|
| 196 | ) { |
|
| 197 | $this->signalDispatcher = $signalDispatcher; |
|
| 198 | $this->repository = $repository; |
|
| 199 | $this->contentService = $contentService; |
|
| 200 | $this->contentTypeService = $contentTypeService; |
|
| 201 | $this->fieldTypeService = $fieldTypeService; |
|
| 202 | $this->roleService = $roleService; |
|
| 203 | $this->objectStateService = $objectStateService; |
|
| 204 | $this->urlWildcardService = $urlWildcardService; |
|
| 205 | $this->urlAliasService = $urlAliasService; |
|
| 206 | $this->userService = $userService; |
|
| 207 | $this->searchService = $searchService; |
|
| 208 | $this->sectionService = $sectionService; |
|
| 209 | $this->trashService = $trashService; |
|
| 210 | $this->locationService = $locationService; |
|
| 211 | $this->languageService = $languageService; |
|
| 212 | $this->urlService = $urlService; |
|
| 213 | $this->bookmarkService = $bookmarkService; |
|
| 214 | $this->notificationService = $notificationService; |
|
| 215 | $this->userPreferenceService = $userPreferenceService; |
|
| 216 | } |
|
| 217 | ||
| 218 | /** |
|
| 219 | * @deprecated since 6.6, to be removed. Use PermissionResolver::getCurrentUserReference() instead. |
|