harbor run -t openthoughts/tasktrove-exp-rpt-stack-php-v2-v6-stack-php-0434harbor download openthoughts/tasktrove-exp-rpt-stack-php-v2-v6-stack-php-0434Task: Implement the ResetAction class used by the tests in /app/
Objective: Create a fully functional ResetAction that handles the password reset flow as exercised by the provided PHPUnit tests. The action must be compatible with the Sonata UserBundle context and interact correctly with the mocked collaborators used in the tests.
What to implement:
File path and namespace
Dependencies (provided via constructor)
Callable behavior
Required logic to satisfy tests
Authentication redirect
Unknown token handling
Expired password request handling
Rendering the reset form (non-submitted or non-valid)
Processing a valid POST (form submitted and valid)
Rendering template details to match tests
Notes
Objective of the implementation: When the tests run, all five scenarios (authenticated redirect, unknown token, expired password request, rendering the reset form, and posting a valid reset) should be exercised and pass based on the implemented ResetAction behavior. Place the code in /app/ as described above.