$a = \Friendica\App::fromDice($dice);
-$a->processRequest();
-
-$a->runFrontend(
- $dice->create(\Friendica\App\Router::class),
- $dice->create(\Friendica\Core\PConfig\Capability\IManagePersonalConfigValues::class),
- $dice->create(\Friendica\Security\Authentication::class),
- $dice->create(\Friendica\App\Page::class),
- $dice->create(\Friendica\Content\Nav::class),
- $dice->create(Friendica\Module\Special\HTTPException::class),
- new \Friendica\Util\HTTPInputData($request->getServerParams()),
- $start_time,
- $request->getServerParams()
-);
+$a->processRequest($request, $start_time);
use Friendica\Util\HTTPInputData;
use Friendica\Util\HTTPSignature;
use Friendica\Util\Profiler;
+use Psr\Http\Message\ServerRequestInterface;
use Psr\Log\LoggerInterface;
/**
$this->appHelper = $appHelper;
}
- public function processRequest(): void
+ public function processRequest(ServerRequestInterface $request, float $start_time): void
{
$this->load(
$this->container->create(DbaDefinition::class),
);
$this->mode->setExecutor(Mode::INDEX);
+
+ $this->runFrontend(
+ $this->container->create(\Friendica\App\Router::class),
+ $this->container->create(\Friendica\Core\PConfig\Capability\IManagePersonalConfigValues::class),
+ $this->container->create(\Friendica\Security\Authentication::class),
+ $this->container->create(\Friendica\App\Page::class),
+ $this->container->create(\Friendica\Content\Nav::class),
+ $this->container->create(\Friendica\Module\Special\HTTPException::class),
+ new \Friendica\Util\HTTPInputData($request->getServerParams()),
+ $start_time,
+ $request->getServerParams()
+ );
}
/**