mirror of
https://github.com/friendica/friendica
synced 2025-01-30 18:19:47 +00:00
Mark App as final and internal
This commit is contained in:
parent
bb252e326f
commit
92aabbdcec
1 changed files with 13 additions and 0 deletions
13
src/App.php
13
src/App.php
|
@ -57,6 +57,7 @@ use Psr\Log\LoggerInterface;
|
|||
* and anything else that might need to be passed around
|
||||
* before we spit the page out.
|
||||
*
|
||||
* @final
|
||||
*/
|
||||
class App
|
||||
{
|
||||
|
@ -64,6 +65,9 @@ class App
|
|||
const CODENAME = 'Interrupted Fern';
|
||||
const VERSION = '2025.02-dev';
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public static function fromContainer(Container $container): self
|
||||
{
|
||||
return new self($container);
|
||||
|
@ -130,6 +134,9 @@ class App
|
|||
$this->container = $container;
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public function processRequest(ServerRequestInterface $request, float $start_time): void
|
||||
{
|
||||
$this->container->addRule(Mode::class, [
|
||||
|
@ -178,6 +185,9 @@ class App
|
|||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public function processConsole(array $argv): void
|
||||
{
|
||||
$this->setupContainerForAddons();
|
||||
|
@ -193,6 +203,9 @@ class App
|
|||
(\Friendica\Core\Console::create($this->container, $argv))->execute();
|
||||
}
|
||||
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
public function processEjabberd(): void
|
||||
{
|
||||
$this->setupContainerForAddons();
|
||||
|
|
Loading…
Add table
Reference in a new issue