mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 05:23:21 +00:00
V 3.5 RC 1
This commit is contained in:
37
lib/classes/module/Admin.php
Normal file
37
lib/classes/module/Admin.php
Normal file
@@ -0,0 +1,37 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2010 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @package
|
||||
* @license http://opensource.org/licenses/gpl-3.0 GPLv3
|
||||
* @link www.phraseanet.com
|
||||
*/
|
||||
use Silex\Application;
|
||||
|
||||
return call_user_func(
|
||||
function()
|
||||
{
|
||||
$app = new Application();
|
||||
|
||||
$app->mount('/publications', new Controller_Admin_Publications());
|
||||
$app->mount('/users', new Controller_Admin_Users());
|
||||
$app->mount('/fields', new Controller_Admin_Fields());
|
||||
$app->mount('/tests/connection', new Controller_Utils_ConnectionTest());
|
||||
$app->mount('/tests/pathurl', new Controller_Utils_PathFileTest());
|
||||
|
||||
$app->error(function(\Exception $e)
|
||||
{
|
||||
return $e->getMessage();
|
||||
});
|
||||
|
||||
return $app;
|
||||
});
|
Reference in New Issue
Block a user