marcel-maqsood / mezzio-abstract-request-handler
The AbstractRequestHandler is a abstract RequestHandler that contaisn additional functions to be used in a Laminas/Mezzio application
Requires
- laminas/laminas-diactoros: ^3.3
- marcel-maqsood/database-connector: ^1.0
- mezzio/mezzio-router: ^3.17
- psr/container: ^1.0
- webmozart/assert: ^1.11
README
You can install this package with the following command:
composer require marcel-maqsood/mezzio-abstract-request-handler
Configuration
Within RequestHandlers that extends our AbstractRequestHandler, You have to pass atleast a TemplateRenderer; For advanced functions like generateInsertArray, you need to submit arrays that contain your table config, otherwise these functions wont do anything.
persistentpdo - An array, in which we define our database-connection rules:
See MazeDEV/Marcel-Maqsood(https://github.com/marcel-maqsood/DatabaseConnector) for additional informations and documentation.
Our SessionAuthMiddleware uses this DatabaseConnector and therefore requires its configuration set.
Within our default config, we already supply these settings and you just have to adjust them.
Also, PersistentPDO must be included within your applications config\autoload\dependencies.global.php
as it is required for our AbstractRequestHandler.
We already included it within our config\dependencies.global.php
.
Credits
This Software has been developed by MazeDEV/Marcel-Maqsood(https://github.com/marcel-maqsood).
License
The MIT License (MIT). Please see License File for more information.