📄️ Controllers
Controllers in ModulesPress handle incoming requests and return appropriate responses to clients. They utilize a clean, decorator-based approach for building REST APIs, based on the underlying WP REST API for all registrations and callbacks.
📄️ Pipes and Validation
ModulesPress provides a robust validation system built on top of Symfony's Validator component, offering comprehensive data validation, transformation, and sanitization capabilities through DTOs (Data Transfer Objects) and custom validation pipes.
📄️ Middlewares
Middleware in ModulesPress provides a powerful mechanism to intercept, transform, and control the REST request-response lifecycle. Each middleware acts as a configurable checkpoint in your plugin's request processing pipeline.
📄️ Guards
Guards are a powerful feature in ModulesPress that provide a robust way to handle authentication, authorization, and other request validations. Similar to NestJS guards, they determine whether a request should be handled by the route handler or blocked based on certain conditions.
📄️ Interceptors
Interceptors are powerful middleware components that allow you to intercept and modify the execution flow of method handlers across your plugin. They provide an elegant way to add cross-cutting functionality such as logging, caching, response transformation, and performance monitoring.