定制 adeira/presenter-factory 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

adeira/presenter-factory

最新稳定版本:v1.0.4

Composer 安装命令:

composer require adeira/presenter-factory

包简介

README 文档

README

At this moment I don't have time, energy and money to maintain this project. But it's a shame so if you depend on this project and you want to become a sponsor or develop it further please don't hesitate to contact me. Otherwise, I am not able to guarantee bright future of this repo... :)

Enhanced presenter factory for Nette Framework

This package is fork of librette/presenter-factory. Unfortunately author of this package is not taking care of this package anymore. But it's very useful. So that's why. And now what:

Build Status

Nette Framework does have very simple presenter factory which helps you to map namespaces of presenters to the presenter name and vice versa. Unfortunately it's not possible to map two namespaces under one module section:

application:
  mapping:
    Module: App\Presenters\*Presenter

But with this package it is possible:

application:
  mapping:
    Module:
      - App\Presenters\*Presenter
      - Bpp\Controllers\*Controller

In this case Nette is going to look for presenters in two namespaces. This is extremely useful if you have a lot of bundles separated by functionality. For example you have API module with this mapping:

['Api' => 'Ant\ApiModule\Presenters\*Presenter']

Then you have Assets bundle. In this bundle you can setup mapping for presenters under Assets package but related to the API like this:

['Api' => 'Ant\Assets\ApiModule\Presenters\*Presenter']

I found this very useful.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: BSD-3-Clause
  • 更新时间: 2016-10-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固