19declare(strict_types=1);
29use Psr\Http\Message\ServerRequestInterface;
56 [self::NAMESPACE_LONG, self::NAMESPACE_ALTERNATIVE, self::NAMESPACE_SHORT],
63 if (
$request->getNamespace() === $this->getNamespace()) {
68 $this->getNamespaceAliasses()
78 $DIC->repositoryTree()
81 $alias =
$request->getAdditionalParameters()[0] ??
'';
82 if (!$repository->has($alias)) {
83 return $response_factory->
cannot();
86 if (($shortlink = $repository->getByAlias($alias)) ===
null) {
87 return $response_factory->
cannot();
90 if (!$shortlink->isActive()) {
91 return $response_factory->
cannot();
95 $DIC[
'static_url']->builder(),
99 $target = $target_resolver->resolve(
107 return $response_factory->
cannot();
110 $repository->increaseUsage(
114 return $response_factory->
can(
122 $requested_uri =
$request->getUri()->getPath();
The scope of this class is split ilias-conform URI's into components.
can(string $uri_path, bool $shift=false)
The Handler successfully resolved the target.
cannot()
The Handler cannot process the given Request at all, e.g.
const string NAMESPACE_ALTERNATIVE
canHandle(Request $request)
const string SHORTLINK_NAMESPACE
const string NAMESPACE_SHORT
const string NAMESPACE_LONG
mustShift(ServerRequestInterface $request)
handle(Request $request, Context $context, Factory $response_factory)
$request
@ilCtrl_Calls ilObjLearningSequenceContentGUI: ilObjLearningSequenceConditionsGUI
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.