mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
17 lines
353 B
PHP
17 lines
353 B
PHP
<?php
|
|
|
|
use Zend\ServiceManager\Config;
|
|
use Zend\ServiceManager\ServiceManager;
|
|
|
|
// Load configuration
|
|
$config = require __DIR__ . '/config.php';
|
|
|
|
// Build container
|
|
$container = new ServiceManager();
|
|
(new Config($config['services']))->configureServiceManager($container);
|
|
|
|
// Inject config
|
|
$container->setService('config', $config);
|
|
|
|
return $container;
|