mirror of
https://github.com/shlinkio/shlink.git
synced 2024-12-18 00:52:07 +03:00
30 lines
877 B
PHP
30 lines
877 B
PHP
|
<?php
|
||
|
declare(strict_types=1);
|
||
|
|
||
|
use Shlinkio\Shlink\Installer\Config\Plugin\DatabaseConfigCustomizer;
|
||
|
use Shlinkio\Shlink\Installer\Factory\InstallApplicationFactory;
|
||
|
use Symfony\Component\Console\Application;
|
||
|
use Symfony\Component\Filesystem\Filesystem;
|
||
|
use Zend\ServiceManager\AbstractFactory\ConfigAbstractFactory;
|
||
|
use Zend\ServiceManager\Factory\InvokableFactory;
|
||
|
use Zend\ServiceManager\ServiceManager;
|
||
|
|
||
|
chdir(dirname(__DIR__));
|
||
|
|
||
|
require __DIR__ . '/../vendor/autoload.php';
|
||
|
|
||
|
$container = new ServiceManager([
|
||
|
'factories' => [
|
||
|
Application::class => InstallApplicationFactory::class,
|
||
|
Filesystem::class => InvokableFactory::class,
|
||
|
],
|
||
|
'services' => [
|
||
|
'config' => [
|
||
|
ConfigAbstractFactory::class => [
|
||
|
DatabaseConfigCustomizer::class => [Filesystem::class],
|
||
|
],
|
||
|
],
|
||
|
],
|
||
|
]);
|
||
|
return $container;
|