]> git.mxchange.org Git - friendica.git/blob - index.php
Merge pull request #6601 from annando/false-notifications
[friendica.git] / index.php
1 <?php
2 /**
3  * @file index.php
4  * Friendica
5  */
6
7 use Friendica\App;
8 use Friendica\Core\Config;
9 use Friendica\Factory;
10 use Friendica\Util\BasePath;
11
12 if (!file_exists(__DIR__ . '/vendor/autoload.php')) {
13         die('Vendor path not found. Please execute "bin/composer.phar --no-dev install" on the command line in the web root.');
14 }
15
16 require __DIR__ . '/vendor/autoload.php';
17
18 $basedir = BasePath::create(__DIR__, $_SERVER);
19 $configLoader = new Config\ConfigCacheLoader($basedir);
20 $config = Factory\ConfigFactory::createCache($configLoader);
21 $logger = Factory\LoggerFactory::create('index', $config);
22
23 // We assume that the index.php is called by a frontend process
24 // The value is set to "true" by default in App
25 $a = new App($config, $logger, false);
26
27 $a->runFrontend();