Issues

ZF-9468: Autoload plugin files in Zend_Application_Resource_Frontcontroller::init

Issue Type: Improvement Created: 2010-03-18T10:24:44.000+0000 Last Updated: 2010-07-16T13:55:28.000+0000 Status: Resolved Fix version(s): - 1.10.7 (28/Jul/10)

Reporter: Stephan Kountso (steplg) Assignee: Dolf Schimmel (Freeaqingme) (freak) Tags: - Zend_Application_Resource

Related issues: Attachments: - diff.patch

Description

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

<pre class="highlight">
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)

Comments

Posted by Stephan Kountso (steplg) on 2010-03-18T10:26:21.000+0000

patch to fix issue

Posted by Matthew Weier O'Phinney (matthew) on 2010-03-18T10:46:11.000+0000

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.

Posted by Dolf Schimmel (Freeaqingme) (freak) on 2010-07-16T13:55:28.000+0000

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

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2016 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.

Contacts