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\Podcast\ConfirmDeleteAction; 28use Ampache\Module\Application\Podcast\CreateAction; 29use Ampache\Module\Application\Podcast\DeleteAction; 30use Ampache\Module\Application\Podcast\ShowAction; 31use Ampache\Module\Application\Podcast\ShowCreateAction; 32use Nyholm\Psr7Server\ServerRequestCreatorInterface; 33use Psr\Container\ContainerInterface; 34 35/** @var ContainerInterface $dic */ 36$dic = require __DIR__ . '/../src/Config/Init.php'; 37 38$dic->get(ApplicationRunner::class)->run( 39 $dic->get(ServerRequestCreatorInterface::class)->fromGlobals(), 40 [ 41 ShowCreateAction::REQUEST_KEY => ShowCreateAction::class, 42 CreateAction::REQUEST_KEY => CreateAction::class, 43 DeleteAction::REQUEST_KEY => DeleteAction::class, 44 ConfirmDeleteAction::REQUEST_KEY => ConfirmDeleteAction::class, 45 ShowAction::REQUEST_KEY => ShowAction::class, 46 ], 47 ShowAction::REQUEST_KEY 48); 49