Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace request model to Yii Input HTTP #599

Merged
merged 4 commits into from
Oct 8, 2023
Merged

Replace request model to Yii Input HTTP #599

merged 4 commits into from
Oct 8, 2023

Conversation

vjik
Copy link
Member

@vjik vjik commented Oct 6, 2023

Q A
Is bugfix?
New feature?
Breaks BC? ✔️
Fixed issues -

@vjik vjik added the status:under development Someone is working on a pull request. label Oct 6, 2023
@what-the-diff
Copy link

what-the-diff bot commented Oct 6, 2023

PR Summary

  • Introduction of new dependencies
    The update introduces three new dependencies (yiisoft/hydrator-validator, yiisoft/input-http, and yiisoft/middleware-dispatcher) that will help improve our codebase's efficiency and maintainability.

  • Creation of a new configuration file
    A new configuration file (config/common/di/hydrator.php) has been created to handle the configuration of a new added asset.

  • Modification of routing in configuration files
    In the configuration file (config/common/di/router.php), the routing method has been changed from addGroup to addRoute, this helps to make our routing more specialized and less prone to confusion.

  • Update on middleware handling
    The file config/web/di/middleware-dispatcher.php now uses a CompositeParametersResolver, and added references to various Resolvers. This enhances the way our middleware handles requests in the application.

  • Configuration of a new dependency
    The file config/web/params.php was updated to include configuration for the recently added yiisoft/input-http package, allowing us to benefit from the services this package provides.

  • Usage of new classes from a new dependency
    Multiple files (including AuthRequest, BlogController, EditPostRequest, ExceptionMiddleware, UserController, and UserRequest) were updated to use new attributes and classes from the added yiisoft/input-http package. This will add to the efficiency and effectiveness of our application.

@vjik vjik mentioned this pull request Oct 6, 2023
@vjik vjik changed the title Blog API: Replace request model to Yii Input HTTP Replace request model to Yii Input HTTP Oct 7, 2023
@TiaNex-Com
Copy link

hello, this name space is changed
use Yiisoft\Input\Http\Request\Catcher\RequestCatcherParametersResolver;

@vjik
Copy link
Member Author

vjik commented Mar 20, 2024

hello, this name space is changed use Yiisoft\Input\Http\Request\Catcher\RequestCatcherParametersResolver;

RequestCatcherParametersResolver is removed. Use RequestCatcherMiddleware from https://github.com/yiisoft/request-provider

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:under development Someone is working on a pull request.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants