shlink/config/app.php
Alejandro Celaya f248d44e68 Improved config
2016-04-10 12:06:28 +02:00

14 lines
356 B
PHP

<?php
use Zend\Expressive\Application;
use Zend\ServiceManager\ServiceManager;
chdir(dirname(__DIR__));
require __DIR__ . '/../vendor/autoload.php';
// Build container
$config = require __DIR__ . '/config.php';
$container = new ServiceManager($config['services']);
$container->setService('config', $config);
return $container->get(Application::class);