"Fossies" - the Fresh Open Source Software Archive

Member "ampache-5.0.0/public/admin/access.php" (31 Aug 2021, 2315 Bytes) of package /linux/www/ampache-5.0.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "access.php" see the Fossies "Dox" file reference documentation.

    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 
   24 declare(strict_types=1);
   25 
   26 use Ampache\Module\Application\Admin\Access\AddHostAction;
   27 use Ampache\Module\Application\Admin\Access\DeleteRecordAction;
   28 use Ampache\Module\Application\Admin\Access\ShowAction;
   29 use Ampache\Module\Application\Admin\Access\ShowAddAction;
   30 use Ampache\Module\Application\Admin\Access\ShowAddAdvancedAction;
   31 use Ampache\Module\Application\Admin\Access\ShowDeleteRecordAction;
   32 use Ampache\Module\Application\Admin\Access\ShowEditRecordAction;
   33 use Ampache\Module\Application\Admin\Access\UpdateRecordAction;
   34 use Ampache\Module\Application\ApplicationRunner;
   35 use Nyholm\Psr7Server\ServerRequestCreatorInterface;
   36 use Psr\Container\ContainerInterface;
   37 
   38 /** @var ContainerInterface $dic */
   39 $dic = require __DIR__ . '/../../src/Config/Init.php';
   40 
   41 $dic->get(ApplicationRunner::class)->run(
   42     $dic->get(ServerRequestCreatorInterface::class)->fromGlobals(),
   43     [
   44         DeleteRecordAction::REQUEST_KEY => DeleteRecordAction::class,
   45         ShowDeleteRecordAction::REQUEST_KEY => ShowDeleteRecordAction::class,
   46         AddHostAction::REQUEST_KEY => AddHostAction::class,
   47         ShowAction::REQUEST_KEY => ShowAction::class,
   48         ShowEditRecordAction::REQUEST_KEY => ShowEditRecordAction::class,
   49         UpdateRecordAction::REQUEST_KEY => UpdateRecordAction::class,
   50         ShowAddAdvancedAction::REQUEST_KEY => ShowAddAdvancedAction::class,
   51         ShowAddAction::REQUEST_KEY => ShowAddAction::class,
   52     ],
   53     ShowAction::REQUEST_KEY
   54 );