aboutsummaryrefslogtreecommitdiffstats
path: root/core/Controller/UnifiedSearchController.php
diff options
context:
space:
mode:
authorCôme Chilliet <91878298+come-nc@users.noreply.github.com>2023-06-20 15:33:53 +0200
committerGitHub <noreply@github.com>2023-06-20 15:33:53 +0200
commit14ac281acf143606c54e59e3641c9d0d898e5f95 (patch)
tree6061ebee33453376ed236f21ad52d1b0d8fa390d /core/Controller/UnifiedSearchController.php
parentd9e9d4e123f5b74378b9ba2fa2082eca205f3526 (diff)
parent4ce7173f7ed22a25dd8149421ca778e47a3b3c46 (diff)
downloadnextcloud-server-14ac281acf143606c54e59e3641c9d0d898e5f95.tar.gz
nextcloud-server-14ac281acf143606c54e59e3641c9d0d898e5f95.zip
Merge pull request #38638 from fsamapoor/constructor_property_promotion_part3
[3/3] Refactors /core controllers using constructor property promotion.
Diffstat (limited to 'core/Controller/UnifiedSearchController.php')
-rw-r--r--core/Controller/UnifiedSearchController.php22
1 files changed, 7 insertions, 15 deletions
diff --git a/core/Controller/UnifiedSearchController.php b/core/Controller/UnifiedSearchController.php
index 3290307dc23..7e73ac8100f 100644
--- a/core/Controller/UnifiedSearchController.php
+++ b/core/Controller/UnifiedSearchController.php
@@ -40,22 +40,14 @@ use OCP\Search\ISearchQuery;
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
class UnifiedSearchController extends OCSController {
- private SearchComposer $composer;
- private IUserSession $userSession;
- private IRouter $router;
- private IURLGenerator $urlGenerator;
-
- public function __construct(IRequest $request,
- IUserSession $userSession,
- SearchComposer $composer,
- IRouter $router,
- IURLGenerator $urlGenerator) {
+ public function __construct(
+ IRequest $request,
+ private IUserSession $userSession,
+ private SearchComposer $composer,
+ private IRouter $router,
+ private IURLGenerator $urlGenerator,
+ ) {
parent::__construct('core', $request);
-
- $this->composer = $composer;
- $this->userSession = $userSession;
- $this->router = $router;
- $this->urlGenerator = $urlGenerator;
}
/**