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

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

32 lines
793 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 {
private $controllerName;
private $actionName;
private $container;
/**
* @param string $controllerName
* @param string $actionName
*/
2013-08-17 05:16:48 -04:00
public function __construct(DIContainer $container, $controllerName, $actionName) {
$this->controllerName = $controllerName;
$this->actionName = $actionName;
$this->container = $container;
}
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
}
}