Zend Framework

Add ability for Zend_Application_Bootstrap_Bootstrap to initialize a module autoloader

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Minor Minor
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.10.0
  • Component/s: Zend_Application
  • Labels:
    None
  • Fix Version Priority:
    Must Have

Description

Zend_Application_Bootstrap_Bootstrap should initialize a module autoloader by default, using a sane default namespace ("Application").

Issue Links

Activity

Hide
Matthew Weier O'Phinney added a comment -

Changes committed to trunk

Show
Matthew Weier O'Phinney added a comment - Changes committed to trunk
Hide
Dolf Schimmel (Freeaqingme) added a comment -

<weierophinney> note to self: also add a switch to disable the module autoloader...

Now I wont feel ashamed if I forget to remember that for you (notes to oneself in pm's tend to be forgotten. - Or maybe I should raise my expectations? )

Show
Dolf Schimmel (Freeaqingme) added a comment -
<weierophinney> note to self: also add a switch to disable the module autoloader...
Now I wont feel ashamed if I forget to remember that for you (notes to oneself in pm's tend to be forgotten. - Or maybe I should raise my expectations? )
Hide
Matthew Weier O'Phinney added a comment -

Resolved in trunk. Behavior is opt-in for existing projects, enabled by default for new projects, and documented in the Bootstrap docs.

Show
Matthew Weier O'Phinney added a comment - Resolved in trunk. Behavior is opt-in for existing projects, enabled by default for new projects, and documented in the Bootstrap docs.
Hide
Cristian Bichis added a comment -

I don't quite understand the changes needed to existing applications to work with this revision.

After i updated one application to 19571 the modules resources stopped loading.

By example i had a Text_Model_Text class which is not loading anymore, and of course all the classes from modules are failing loading.

Before of this i was using:

resources.modules[] = ""

And Bootstrapper as:

class Text_Bootstrap extends Zend_Application_Module_Bootstrap
{

}

for each module...

Show
Cristian Bichis added a comment - I don't quite understand the changes needed to existing applications to work with this revision. After i updated one application to 19571 the modules resources stopped loading. By example i had a Text_Model_Text class which is not loading anymore, and of course all the classes from modules are failing loading. Before of this i was using: resources.modules[] = "" And Bootstrapper as: class Text_Bootstrap extends Zend_Application_Module_Bootstrap { } for each module...
Hide
Matthew Weier O'Phinney added a comment -

Can you elaborate?

The only thing this is supposed to do is allow specifying a module autoloader for the application-level bootstrap; this is done by simply adding a key to your configuration:

appnamespace = "Application"

Module bootstraps should be unaffected; am I to understand that your module bootstraps are no longer initializing module autoloaders? (I'm a bit unclear as to what you're asking...)

Show
Matthew Weier O'Phinney added a comment - Can you elaborate? The only thing this is supposed to do is allow specifying a module autoloader for the application-level bootstrap; this is done by simply adding a key to your configuration:
appnamespace = "Application"
Module bootstraps should be unaffected; am I to understand that your module bootstraps are no longer initializing module autoloaders? (I'm a bit unclear as to what you're asking...)
Hide
Cristian Bichis added a comment -

Yes, your'e right: module autoloaders doesn't seems to work anymore...

Show
Cristian Bichis added a comment - Yes, your'e right: module autoloaders doesn't seems to work anymore...
Hide
Bert Hausmans added a comment -

Same problem here. After I add the line "appnamespace = "Application" to the application configuration, the Module Autoloaders still didn't work.

Show
Bert Hausmans added a comment - Same problem here. After I add the line "appnamespace = "Application" to the application configuration, the Module Autoloaders still didn't work.
Hide
Matthew Weier O'Phinney added a comment -

Fixed in trunk.

Show
Matthew Weier O'Phinney added a comment - Fixed in trunk.
Hide
Cristian Bichis added a comment -

Yes, works fine now. Thanks.

Show
Cristian Bichis added a comment - Yes, works fine now. Thanks.

People

Vote (0)
Watch (3)

Dates

  • Created:
    Updated:
    Resolved: