Blame view
sources/lib/private/appframework/routing/routeactionhandler.php
1.3 KB
|
03e52840d
|
1 2 |
<?php /** |
|
31b7f2792
|
3 |
* ownCloud - App Framework |
|
03e52840d
|
4 |
* |
|
31b7f2792
|
5 6 |
* @author Thomas Müller * @copyright 2013 Thomas Müller thomas.mueller@tmit.eu |
|
03e52840d
|
7 8 9 10 11 12 13 14 15 16 17 18 19 |
* * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE * License as published by the Free Software Foundation; either * version 3 of the License, or any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU AFFERO GENERAL PUBLIC LICENSE for more details. * * You should have received a copy of the GNU Affero General Public * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
|
31b7f2792
|
20 |
* |
|
03e52840d
|
21 |
*/ |
|
31b7f2792
|
22 |
namespace OC\AppFramework\routing; |
|
03e52840d
|
23 |
|
|
31b7f2792
|
24 25 |
use \OC\AppFramework\App; use \OC\AppFramework\DependencyInjection\DIContainer; |
|
03e52840d
|
26 |
|
|
31b7f2792
|
27 28 29 30 |
class RouteActionHandler {
private $controllerName;
private $actionName;
private $container;
|
|
03e52840d
|
31 |
|
|
31b7f2792
|
32 33 34 35 |
public function __construct(DIContainer $container, $controllerName, $actionName) {
$this->controllerName = $controllerName;
$this->actionName = $actionName;
$this->container = $container;
|
|
03e52840d
|
36 |
} |
|
31b7f2792
|
37 38 |
public function __invoke($params) {
App::main($this->controllerName, $this->actionName, $this->container, $params);
|
|
03e52840d
|
39 40 |
} } |