]> git.mxchange.org Git - friendica.git/blob - index.php
Remove DependencyFactory
[friendica.git] / index.php
1 <?php
2 /**
3  * @file index.php
4  * Friendica
5  */
6
7 if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
8         die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.');
9 }
10
11 require __DIR__ . '/vendor/autoload.php';
12
13 $dice = new \Dice\Dice();
14 $dice = $dice->addRules(include __DIR__ . '/static/dependencies.config.php');
15
16 \Friendica\BaseObject::setDependencyInjection($dice);
17
18 $a = \Friendica\BaseObject::getApp();
19
20 $a->runFrontend();