shlink/config/container.php

14 lines
316 B
PHP
Raw Normal View History

2016-04-10 09:52:44 +02:00
<?php
use Zend\Expressive\Application;
use Zend\ServiceManager\ServiceManager;
2016-04-10 12:06:28 +02:00
chdir(dirname(__DIR__));
2016-04-17 20:27:24 +02:00
require 'vendor/autoload.php';
2016-04-10 09:52:44 +02:00
// Build container
$config = require __DIR__ . '/config.php';
$container = new ServiceManager($config['services']);
$container->setService('config', $config);
2016-04-17 20:27:24 +02:00
return $container;