mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 15:03:25 +00:00
Cleanup namepaces, variables uses
This commit is contained in:
@@ -84,9 +84,7 @@ class TaskManager implements ControllerProviderInterface
|
||||
});
|
||||
|
||||
$controllers->get('/scheduler/log', function(Application $app, Request $request) {
|
||||
$appbox = $app['phraseanet.appbox'];
|
||||
$registry = $app['phraseanet.registry'];
|
||||
$logdir = \p4string::addEndSlash($registry->get('GV_RootPath') . 'logs');
|
||||
$logdir = \p4string::addEndSlash($app['phraseanet.registry']->get('GV_RootPath') . 'logs');
|
||||
|
||||
$rname = '/scheduler((\.log)|(-.*\.log))$/';
|
||||
|
||||
@@ -128,9 +126,7 @@ class TaskManager implements ControllerProviderInterface
|
||||
|
||||
|
||||
$controllers->get('/task/{id}/log', function(Application $app, Request $request, $id) {
|
||||
$appbox = $app['phraseanet.appbox'];
|
||||
$registry = $app['phraseanet.registry'];
|
||||
$logdir = \p4string::addEndSlash($registry->get('GV_RootPath') . 'logs');
|
||||
$logdir = \p4string::addEndSlash($app['phraseanet.registry']->get('GV_RootPath') . 'logs');
|
||||
|
||||
$rname = '/task_' . $id . '((\.log)|(-.*\.log))$/';
|
||||
|
||||
|
Reference in New Issue
Block a user