2017 © Pedro Peláez
 

library presenter-factory

image

adeira/presenter-factory

  • Sunday, July 16, 2017
  • by mrtnzlml
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11,328 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 11 % Grown

The README.md

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... :), (*1)

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:, (*2)

Build Status, (*3)

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:, (*4)

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

But with this package it is possible:, (*5)

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:, (*6)

['Api' => 'Ant\ApiModule\Presenters\*Presenter'], (*7)

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

['Api' => 'Ant\Assets\ApiModule\Presenters\*Presenter'], (*9)

I found this very useful., (*10)

The Versions

14/10 2016

v1.0.4

1.0.4.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

application nette librette presenter factory

24/07 2016

v1.0.3

1.0.3.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

application nette librette presenter factory

30/05 2016

v1.0.2

1.0.2.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

application nette librette presenter factory

21/04 2016

v1.0.1

1.0.1.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

application nette librette presenter factory

21/04 2016

v1.0

1.0.0.0

  Sources   Download

GPL-3.0 BSD-3-Clause GPL-2.0

The Requires

 

The Development Requires

application nette librette presenter factory