use Friendica\App;
use Friendica\Core\Cache;
use Friendica\Core\Config;
+use Friendica\Core\L10n\L10n;
use Friendica\Core\Lock\ILock;
use Friendica\Database\Database;
use Friendica\Factory;
],
App\Mode::class => [
'call' => [
- ['determineBackend', [$_SERVER], Dice::CHAIN_CALL],
+ ['determineRunMode', [true, $_SERVER], Dice::CHAIN_CALL],
['determine', [], Dice::CHAIN_CALL],
],
],
],
],
/**
- * Creates the Util\BaseURL
+ * Creates the App\BaseURL
*
* Same as:
- * $baseURL = new Util\BaseURL($configuration, $_SERVER);
+ * $baseURL = new App\BaseURL($configuration, $_SERVER);
*/
- Util\BaseURL::class => [
+ App\BaseURL::class => [
'constructParams' => [
$_SERVER,
],
],
+ App\Page::class => [
+ 'constructParams' => [
+ [Dice::INSTANCE => '$basepath'],
+ ],
+ ],
/**
* Create a Logger, which implements the LoggerInterface
*
*/
LoggerInterface::class => [
'instanceOf' => Factory\LoggerFactory::class,
+ 'constructParams' => [
+ 'index',
+ ],
'call' => [
- ['create', [], Dice::CHAIN_CALL],
+ ['create', ['index'], Dice::CHAIN_CALL],
],
],
'$devLogger' => [
'instanceOf' => Factory\LoggerFactory::class,
+ 'constructParams' => [
+ 'dev',
+ ],
'call' => [
['createDev', [], Dice::CHAIN_CALL],
]
['determineModule', [], Dice::CHAIN_CALL],
],
],
+ Friendica\Core\Process::class => [
+ 'constructParams' => [
+ [Dice::INSTANCE => '$basepath'],
+ ],
+ ],
+ App\Router::class => [
+ 'constructParams' => [
+ $_SERVER, null
+ ],
+ 'call' => [
+ ['addRoutes', [include __DIR__ . '/routes.config.php'], Dice::CHAIN_CALL],
+ ],
+ ],
+ L10n::class => [
+ 'constructParams' => [
+ $_SERVER, $_GET
+ ],
+ ],
];