This commit is contained in:
Nicolas Le Goff
2012-01-13 13:05:42 +01:00
parent 4c8f0e5784
commit c87f48c2e2

View File

@@ -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);