mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 07:23:13 +00:00
Remove bootstrap calls
This commit is contained in:
@@ -7,7 +7,6 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
use Alchemy\Phrasea\Controller\Setup as Controller;
|
use Alchemy\Phrasea\Controller\Setup as Controller;
|
||||||
use Alchemy\Phrasea\Controller\Utils as ControllerUtils;
|
use Alchemy\Phrasea\Controller\Utils as ControllerUtils;
|
||||||
|
|
||||||
require_once __DIR__ . '/../../../../../bootstrap.php';
|
|
||||||
|
|
||||||
return call_user_func(function()
|
return call_user_func(function()
|
||||||
{
|
{
|
||||||
@@ -26,10 +25,10 @@ return call_user_func(function()
|
|||||||
$app->mount('/test', new ControllerUtils\PathFileTest());
|
$app->mount('/test', new ControllerUtils\PathFileTest());
|
||||||
$app->mount('/connection_test', new ControllerUtils\ConnectionTest());
|
$app->mount('/connection_test', new ControllerUtils\ConnectionTest());
|
||||||
|
|
||||||
|
|
||||||
$app->error(function($e){
|
$app->error(function($e){
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
return $app;
|
return $app;
|
||||||
});
|
});
|
||||||
|
@@ -7,7 +7,6 @@ use Symfony\Component\HttpFoundation\Request;
|
|||||||
use Alchemy\Phrasea\Controller\Setup as Controller;
|
use Alchemy\Phrasea\Controller\Setup as Controller;
|
||||||
use Alchemy\Phrasea\Controller\Utils as ControllerUtils;
|
use Alchemy\Phrasea\Controller\Utils as ControllerUtils;
|
||||||
|
|
||||||
require_once __DIR__ . '/../../../../../bootstrap.php';
|
|
||||||
|
|
||||||
return call_user_func(function()
|
return call_user_func(function()
|
||||||
{
|
{
|
||||||
@@ -26,10 +25,10 @@ return call_user_func(function()
|
|||||||
$app->mount('/test', new ControllerUtils\PathFileTest());
|
$app->mount('/test', new ControllerUtils\PathFileTest());
|
||||||
$app->mount('/connection_test', new ControllerUtils\ConnectionTest());
|
$app->mount('/connection_test', new ControllerUtils\ConnectionTest());
|
||||||
|
|
||||||
|
|
||||||
$app->error(function($e){
|
$app->error(function($e){
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
return $app;
|
return $app;
|
||||||
});
|
});
|
||||||
|
@@ -1,6 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require_once __DIR__ . '/../../bootstrap.php';
|
|
||||||
|
|
||||||
$include_path = realpath(__DIR__ . '/../../vendor/');
|
$include_path = realpath(__DIR__ . '/../../vendor/');
|
||||||
if(strpos(get_include_path(), $include_path) === false)
|
if(strpos(get_include_path(), $include_path) === false)
|
||||||
|
Reference in New Issue
Block a user