From c87f48c2e2d9ebe38a2ce9f9050b50f017f78e08 Mon Sep 17 00:00:00 2001 From: Nicolas Le Goff Date: Fri, 13 Jan 2012 13:05:42 +0100 Subject: [PATCH] refactor --- lib/Alchemy/Phrasea/Controller/Prod/Edit.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/Alchemy/Phrasea/Controller/Prod/Edit.php b/lib/Alchemy/Phrasea/Controller/Prod/Edit.php index 12543deb33..8b031a6e8a 100644 --- a/lib/Alchemy/Phrasea/Controller/Prod/Edit.php +++ b/lib/Alchemy/Phrasea/Controller/Prod/Edit.php @@ -29,9 +29,9 @@ class Edit implements ControllerProviderInterface { $controllers = new ControllerCollection(); - $controllers->post('/', function(Application $app) + $controllers->post('/', function(Application $app, Request $request) { - $handler = new RecordHelper\Edit($app['Core'], $app['request']); + $handler = new RecordHelper\Edit($app['Core'], $request); $handler->propose_editing(); @@ -44,9 +44,8 @@ class Edit implements ControllerProviderInterface } ); - $controllers->post('/apply/', function(Application $app) + $controllers->post('/apply/', function(Application $app, Request $request) { - $request = $app['request']; $editing = new RecordHelper\Edit($app['Core'], $app['request']); $editing->execute($request);