use Psr\Log\LoggerInterface;
class SearchController extends Controller {
- public function __construct(string $appName,
- IRequest $request,
- private ISearch $searcher,
- private LoggerInterface $logger) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private ISearch $searcher,
+ private LoggerInterface $logger,
+ ) {
parent::__construct($appName, $request);
}
use OCP\Translation\ITranslationManager;
class TranslationApiController extends \OCP\AppFramework\OCSController {
- public function __construct(string $appName,
- IRequest $request,
- private ITranslationManager $translationManager,
- private IL10N $l10n) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private ITranslationManager $translationManager,
+ private IL10N $l10n,
+ ) {
parent::__construct($appName, $request);
}
use Psr\Log\LoggerInterface;
class TwoFactorChallengeController extends Controller {
- public function __construct(string $appName,
- IRequest $request,
- private Manager $twoFactorManager,
- private IUserSession $userSession,
- private ISession $session,
- private IURLGenerator $urlGenerator,
- private LoggerInterface $logger) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private Manager $twoFactorManager,
+ private IUserSession $userSession,
+ private ISession $session,
+ private IURLGenerator $urlGenerator,
+ private LoggerInterface $logger,
+ ) {
parent::__construct($appName, $request);
}
use Symfony\Component\Routing\Exception\ResourceNotFoundException;
class UnifiedSearchController extends OCSController {
- public function __construct(IRequest $request,
- private IUserSession $userSession,
- private SearchComposer $composer,
- private IRouter $router,
- private IURLGenerator $urlGenerator) {
+ public function __construct(
+ IRequest $request,
+ private IUserSession $userSession,
+ private SearchComposer $composer,
+ private IRouter $router,
+ private IURLGenerator $urlGenerator,
+ ) {
parent::__construct('core', $request);
}
use OCP\IUserManager;
class UserController extends Controller {
- public function __construct(string $appName,
- IRequest $request,
- protected IUserManager $userManager) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ protected IUserManager $userManager,
+ ) {
parent::__construct($appName, $request);
}
private const WEBAUTHN_LOGIN = 'webauthn_login';
private const WEBAUTHN_LOGIN_UID = 'webauthn_login_uid';
- public function __construct(string $appName,
- IRequest $request,
- private Manager $webAuthnManger,
- private ISession $session,
- private LoggerInterface $logger,
- private WebAuthnChain $webAuthnChain,
- private URLGenerator $urlGenerator) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private Manager $webAuthnManger,
+ private ISession $session,
+ private LoggerInterface $logger,
+ private WebAuthnChain $webAuthnChain,
+ private URLGenerator $urlGenerator,
+ ) {
parent::__construct($appName, $request);
}
use OCP\IRequest;
class WellKnownController extends Controller {
- public function __construct(IRequest $request,
- private RequestManager $requestManager) {
+ public function __construct(
+ IRequest $request,
+ private RequestManager $requestManager,
+ ) {
parent::__construct('core', $request);
}
use OCP\L10N\IFactory;
class WhatsNewController extends OCSController {
- public function __construct(string $appName,
- IRequest $request,
- CapabilitiesManager $capabilitiesManager,
- private IUserSession $userSession,
- IUserManager $userManager,
- Manager $keyManager,
- private IConfig $config,
- private ChangesCheck $whatsNewService,
- private IFactory $langFactory,
- private Defaults $defaults) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ CapabilitiesManager $capabilitiesManager,
+ private IUserSession $userSession,
+ IUserManager $userManager,
+ Manager $keyManager,
+ private IConfig $config,
+ private ChangesCheck $whatsNewService,
+ private IFactory $langFactory,
+ private Defaults $defaults,
+ ) {
parent::__construct($appName, $request, $capabilitiesManager, $userSession, $userManager, $keyManager);
}
use OCP\IRequest;
class WipeController extends Controller {
- public function __construct(string $appName,
- IRequest $request,
- private RemoteWipe $remoteWipe) {
+ public function __construct(
+ string $appName,
+ IRequest $request,
+ private RemoteWipe $remoteWipe,
+ ) {
parent::__construct($appName, $request);
}