marcel-maqsood/mezzio-abstract-request-handler

The AbstractRequestHandler is a abstract RequestHandler that contaisn additional functions to be used in a Laminas/Mezzio application

v0.1.2.1 2024-05-23 12:44 UTC

This package is auto-updated.

Last update: 2024-10-23 13:45:30 UTC


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.