1<?php
2
3/**
4 * vim:set softtabstop=4 shiftwidth=4 expandtab:
5 *
6 * LICENSE: GNU Affero General Public License, version 3 (AGPL-3.0-or-later)
7 * Copyright 2001 - 2020 Ampache.org
8 *
9 * This program is free software: you can redistribute it and/or modify
10 * it under the terms of the GNU Affero General Public License as published by
11 * the Free Software Foundation, either version 3 of the License, or
12 * (at your option) any later version.
13 *
14 * This program is distributed in the hope that it will be useful,
15 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17 * GNU Affero General Public License for more details.
18 *
19 * You should have received a copy of the GNU Affero General Public License
20 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
21 *
22 */
23
24declare(strict_types=1);
25
26use Ampache\Module\Application\ApplicationRunner;
27use Ampache\Module\Application\Upload\DefaultAction;
28use Nyholm\Psr7Server\ServerRequestCreatorInterface;
29use Psr\Container\ContainerInterface;
30
31/** @var ContainerInterface $dic */
32$dic = require __DIR__ . '/../src/Config/Init.php';
33
34$dic->get(ApplicationRunner::class)->run(
35    $dic->get(ServerRequestCreatorInterface::class)->fromGlobals(),
36    [
37        DefaultAction::REQUEST_KEY => DefaultAction::class
38    ],
39    DefaultAction::REQUEST_KEY
40);
41