Files
Phraseanet/lib/Alchemy/Phrasea/Application/Admin.php
Romain Neutron 2c28295ec8 Fix admin
2012-07-19 17:54:57 +02:00

42 lines
1.3 KiB
PHP

<?php
/*
* This file is part of Phraseanet
*
* (c) 2005-2012 Alchemy
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Alchemy\Phrasea\Application;
use Alchemy\Phrasea\Application as PhraseaApplication;
use Alchemy\Phrasea\Controller\Admin\ConnectedUsers;
use Alchemy\Phrasea\Controller\Admin\Description;
use Alchemy\Phrasea\Controller\Admin\Fields;
use Alchemy\Phrasea\Controller\Admin\Publications;
use Alchemy\Phrasea\Controller\Admin\Root;
use Alchemy\Phrasea\Controller\Admin\Subdefs;
use Alchemy\Phrasea\Controller\Admin\Users;
use Alchemy\Phrasea\Controller\Utils\ConnectionTest;
use Alchemy\Phrasea\Controller\Utils\PathFileTest;
return call_user_func(
function() {
$app = new PhraseaApplication();
$app->mount('/', new Root());
$app->mount('/connected-users', new ConnectedUsers());
$app->mount('/publications', new Publications());
$app->mount('/users', new Users());
$app->mount('/fields', new Fields());
$app->mount('/subdefs', new Subdefs());
$app->mount('/description', new Description());
$app->mount('/tests/connection', new ConnectionTest());
$app->mount('/tests/pathurl', new PathFileTest());
return $app;
}
);