Zend Framework

Autoload plugin files in Zend_Application_Resource_Frontcontroller::init

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Won't Fix
  • Affects Version/s: None
  • Fix Version/s: 1.10.7
  • Labels:
    None

Description

Problem: When pointing in config application.ini to load some plugins, such as:

resources.frontController.plugins = Some_Plugin
resources.frontController.plugins = Another_Plugin

then Zend_Application_Resource_Frontcontroller trying to create them, but not to load. So, in projects, where autoloading is off, there isn't other way than directly include all plugin files in index.php

i think, it's bad practice. Especially, when i'm using different sets of plugins in different environments.

this is a very simple issue and only 3 lines of code fixes them. attaching them as a patch (to version 1.10.2)

Activity

Hide
Stephan Kountso added a comment -

patch to fix issue

Show
Stephan Kountso added a comment - patch to fix issue
Hide
Matthew Weier O'Phinney added a comment -

Honestly, we have to assume the plugins are autoloadable for this to work – and since Zend_Application both assumes and instantiates the autoloader, this is a valid requirement.

Show
Matthew Weier O'Phinney added a comment - Honestly, we have to assume the plugins are autoloadable for this to work – and since Zend_Application both assumes and instantiates the autoloader, this is a valid requirement.
Hide
Dolf Schimmel (Freeaqingme) added a comment -

Resolving as wont-fix for the reasons outlined by Matthew.

Show
Dolf Schimmel (Freeaqingme) added a comment - Resolving as wont-fix for the reasons outlined by Matthew.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: