mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 12:33:26 +00:00
refactor
This commit is contained in:
@@ -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);
|
||||
|
||||
|
Reference in New Issue
Block a user