Mark App as final and internal

This commit is contained in:
Art4 2025-01-22 15:24:32 +00:00
parent bb252e326f
commit 92aabbdcec

View file

@ -57,6 +57,7 @@ use Psr\Log\LoggerInterface;
* and anything else that might need to be passed around * and anything else that might need to be passed around
* before we spit the page out. * before we spit the page out.
* *
* @final
*/ */
class App class App
{ {
@ -64,6 +65,9 @@ class App
const CODENAME = 'Interrupted Fern'; const CODENAME = 'Interrupted Fern';
const VERSION = '2025.02-dev'; const VERSION = '2025.02-dev';
/**
* @internal
*/
public static function fromContainer(Container $container): self public static function fromContainer(Container $container): self
{ {
return new self($container); return new self($container);
@ -130,6 +134,9 @@ class App
$this->container = $container; $this->container = $container;
} }
/**
* @internal
*/
public function processRequest(ServerRequestInterface $request, float $start_time): void public function processRequest(ServerRequestInterface $request, float $start_time): void
{ {
$this->container->addRule(Mode::class, [ $this->container->addRule(Mode::class, [
@ -178,6 +185,9 @@ class App
); );
} }
/**
* @internal
*/
public function processConsole(array $argv): void public function processConsole(array $argv): void
{ {
$this->setupContainerForAddons(); $this->setupContainerForAddons();
@ -193,6 +203,9 @@ class App
(\Friendica\Core\Console::create($this->container, $argv))->execute(); (\Friendica\Core\Console::create($this->container, $argv))->execute();
} }
/**
* @internal
*/
public function processEjabberd(): void public function processEjabberd(): void
{ {
$this->setupContainerForAddons(); $this->setupContainerForAddons();