mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-12 20:43:25 +00:00
refactor
This commit is contained in:
@@ -29,9 +29,9 @@ class Edit implements ControllerProviderInterface
|
|||||||
{
|
{
|
||||||
$controllers = new ControllerCollection();
|
$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();
|
$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 = new RecordHelper\Edit($app['Core'], $app['request']);
|
||||||
$editing->execute($request);
|
$editing->execute($request);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user