Remove registry's GV_RootPath calls

This commit is contained in:
Romain Neutron
2013-06-19 19:21:49 +02:00
parent 98bb412575
commit 3f47cc248d
35 changed files with 79 additions and 81 deletions

View File

@@ -76,7 +76,7 @@ class TaskManager implements ControllerProviderInterface
})->bind('admin_tasks_scheduler_stop');
$controllers->get('/scheduler/log', function(Application $app, Request $request) {
$logdir = \p4string::addEndSlash($app['phraseanet.registry']->get('GV_RootPath') . 'logs');
$logdir = $app['root.path'] . '/logs/';
$rname = '/scheduler((\.log)|(-.*\.log))$/';
@@ -114,7 +114,7 @@ class TaskManager implements ControllerProviderInterface
})->bind('admin_tasks_scheduler_log');
$controllers->get('/task/{id}/log', function(Application $app, Request $request, $id) {
$logdir = \p4string::addEndSlash($app['phraseanet.registry']->get('GV_RootPath') . 'logs');
$logdir = $app['root.path'] . '/logs/';
$rname = '/task_' . $id . '((\.log)|(-.*\.log))$/';