mirror of
https://github.com/shlinkio/shlink.git
synced 2025-03-23 01:58:07 +03:00
16 lines
353 B
PHP
16 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;
|