mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-16 22:43:19 +00:00
30 lines
791 B
PHP
30 lines
791 B
PHP
<?php
|
|
|
|
namespace Alchemy\Phrasea\Application;
|
|
|
|
use Alchemy\Phrasea\Application as PhraseaApplication;
|
|
use Alchemy\Phrasea\Controller\Setup as Controller;
|
|
use Alchemy\Phrasea\Controller\Utils as ControllerUtils;
|
|
|
|
return call_user_func(function() {
|
|
$app = new PhraseaApplication('test');
|
|
|
|
$app['upgrade'] = true;
|
|
|
|
$app->get('/', function() use ($app) {
|
|
return $app->redirect('/setup/upgrader/');
|
|
});
|
|
|
|
$app->mount('/upgrader/', new Controller\Upgrader());
|
|
$app->mount('/test', new ControllerUtils\PathFileTest());
|
|
$app->mount('/connection_test', new ControllerUtils\ConnectionTest());
|
|
|
|
|
|
$app->error(function($e) {
|
|
|
|
});
|
|
|
|
|
|
return $app;
|
|
});
|