mirror of
https://github.com/shlinkio/shlink.git
synced 2026-02-28 04:03:12 +08:00
Created EntityManagerFactory
This commit is contained in:
13
config/container.php
Normal file
13
config/container.php
Normal file
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
use Zend\Expressive\Application;
|
||||
use Zend\ServiceManager\ServiceManager;
|
||||
|
||||
chdir(dirname(__DIR__));
|
||||
|
||||
require 'vendor/autoload.php';
|
||||
|
||||
// Build container
|
||||
$config = require __DIR__ . '/config.php';
|
||||
$container = new ServiceManager($config['services']);
|
||||
$container->setService('config', $config);
|
||||
return $container;
|
||||
Reference in New Issue
Block a user