blob: 848f4f27fa2f6993dc91a21ab2a9ed14d0babfeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
<?php
/**
* This is a specialized dispatcher for plugins.
*
* @author Jan-Hendrik Willms <tleilax+studip@gmail.com>
* @license GPL2 or any later version
* @since Stud.IP 6.0
*/
class PluginDispatcher extends StudipDispatcher
{
public StudIPPlugin $current_plugin;
public function __construct(
\Psr\Container\ContainerInterface $container,
StudIPPlugin $plugin
) {
parent::__construct($container);
$this->current_plugin = $plugin;
$this->trails_root = $plugin->getPluginPath();
$this->trails_uri = rtrim(PluginEngine::getLink($this->current_plugin, [], null, true), '/');
$this->default_controller = 'index';
}
}
|