Closed erichard closed 4 years ago
https://github.com/helios-ag/FMElfinderBundle/pull/349 You should also enable cors_support
Could someone explain why does cors support need to be enabled in order for this to not just use exit()? Why is the exit required at all here? What are the benefits of there being an exit at all compared to just returning the result and in the end returning a standard Symfony Response? Using exit causes this code to be untestable.
Issue Type:
Please pick one and delete the rest:
Bundle Version:
9.2
Summary:
The ElfinderController::loadAction() should return a Symfony Response object instead of doing the output itself.
Expected Results:
Elfinder commands should appear in the Symfony profiler. The POST_EXECUTION event should be dispatched.
Actual Results:
Elfinder commands do not appear in the Symfony profiler. The POST_EXECUTION event is never dispatched.
The
loadAction()
call$loader->load($request)
method. This method call either$connector->execute()
ou$connector->run()
depending of thecors_support
configuration.Both
execute()
andrun()
handle the command, output the json and call theexit()
function.So the following code in
ElfinderController::loadAction()
never seems to be called.