shlink/config/app.php

15 lines
356 B
PHP
Raw Normal View History

2016-04-10 10:52:44 +03:00
<?php
use Zend\Expressive\Application;
use Zend\ServiceManager\ServiceManager;
2016-04-10 13:06:28 +03:00
chdir(dirname(__DIR__));
2016-04-10 10:52:44 +03:00
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);