nextcloud/lib/private/AppFramework/Routing/RouteActionHandler.php

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

25 lines
586 B
PHP
Raw Normal View History

2013-08-17 05:16:48 -04:00
<?php
2013-08-17 05:16:48 -04:00
/**
* SPDX-FileCopyrightText: 2016-2024 Nextcloud GmbH and Nextcloud contributors
* SPDX-FileCopyrightText: 2016 ownCloud, Inc.
* SPDX-License-Identifier: AGPL-3.0-only
2013-08-17 05:16:48 -04:00
*/
namespace OC\AppFramework\Routing;
2013-08-17 05:16:48 -04:00
use OC\AppFramework\App;
use OC\AppFramework\DependencyInjection\DIContainer;
2013-08-17 05:16:48 -04:00
class RouteActionHandler {
public function __construct(
private DIContainer $container,
private string $controllerName,
private string $actionName,
) {
2013-08-17 05:16:48 -04:00
}
public function __invoke($params) {
2013-11-25 05:36:33 -05:00
App::main($this->controllerName, $this->actionName, $this->container, $params);
2013-08-17 05:16:48 -04:00
}
}