8 use Friendica\Core\Config;
10 use Friendica\Util\BasePath;
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.');
16 require __DIR__ . '/vendor/autoload.php';
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 $profiler = Factory\ProfilerFactory::create($config);
24 // We assume that the index.php is called by a frontend process
25 // The value is set to "true" by default in App
26 $a = new App($config, $logger, $profiler, false);