marcel-maqsood/mezzio-abstract-request-handler 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

marcel-maqsood/mezzio-abstract-request-handler

最新稳定版本:v0.1.5.0

Composer 安装命令:

composer require marcel-maqsood/mezzio-abstract-request-handler

包简介

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

README 文档

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.

sql log display

When using our AbstractRequestHandler, the handler will pass the attribute "sqlLog" into each template that it renders, making it easy to view which sql statements happened within the rendering.

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.

统计信息

  • 总下载量: 132
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-05-15