Skip to content
Snippets Groups Projects
Commit e094a176 authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

adjust to changes on main, fixes #33

parent 0e9d57d0
No related branches found
No related tags found
No related merge requests found
......@@ -10,15 +10,18 @@ namespace TracToGitlab;
*/
abstract class Controller extends \PluginController
{
public function __get($offset)
public function &__get($offset)
{
$container = $this->plugin->getDIContainer();
$result = &parent::__get($offset);
if (!isset($container[$offset])) {
return $this->$offset ?? null;
if ($result === null) {
$container = $this->plugin->getDIContainer();
if (isset($container[$offset])) {
return $container[$offset];
}
}
return $container[$offset];
return $result;
}
protected function activateNavigation(string ...$path): void
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment