Add dev entry point for API

This commit is contained in:
Thibaud Fabre
2016-05-24 15:58:16 +02:00
parent 9c287e0cd9
commit 6d512b23f9
2 changed files with 25 additions and 1 deletions

24
www/api_dev.php Normal file
View File

@@ -0,0 +1,24 @@
<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2016 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
use Alchemy\Phrasea\Application;
use Symfony\Component\Debug\ErrorHandler;
require_once __DIR__ . '/../lib/autoload.php';
error_reporting(0);
ErrorHandler::register();
$environment = getenv('APP_ENV') ?: Application::ENV_DEV;
$app = require __DIR__ . '/../lib/Alchemy/Phrasea/Application/Api.php';
$app->run();