]> git.mxchange.org Git - friendica.git/blob - index.php
Merge pull request #7503 from MrPetovan/bug/fix-private-permissions
[friendica.git] / index.php
1 <?php
2 /**
3  * @file index.php
4  * Friendica
5  */
6
7 use Dice\Dice;
8
9 if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
10         die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.');
11 }
12
13 require __DIR__ . '/vendor/autoload.php';
14
15 $dice = (new Dice())->addRules(include __DIR__ . '/static/dependencies.config.php');
16
17 \Friendica\BaseObject::setDependencyInjection($dice);
18
19 $a = \Friendica\BaseObject::getApp();
20
21 $a->runFrontend(
22         $dice->create(\Friendica\App\Module::class),
23         $dice->create(\Friendica\App\Router::class),
24         $dice->create(\Friendica\Core\Config\PConfiguration::class)
25 );