Zend_Application Module Autoloader Configuration

2 messages Options
Embed this post
Permalink
J DeBord

Zend_Application Module Autoloader Configuration

Reply Threaded More More options
Print post
Permalink
Is there an option to create the default module autoloader when passing the config to Zend_Application's constructor as opposed to creating a function in the bootstrap?

Instead of this:

class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
{
    protected function _initAutoloader()
    {
        $moduleLoader = new Zend_Application_Module_Autoloader(array(
            'basePath' => APPLICATION_PATH,
            'namespace' => '',
        ));
    }

place a config option in application.ini for example?

Thanks a lot,

Jason

Jason DEBORD
Zend Certified Engineer
Limoges, France

http://www.jasondebord.net
http://www.nobrandapp.com
weierophinney

Re: Zend_Application Module Autoloader Configuration

Reply Threaded More More options
Print post
Permalink
-- J DeBord <[hidden email]> wrote
(on Wednesday, 04 November 2009, 02:10 PM +0100):
> Is there an option to create the default module autoloader when passing the
> config to Zend_Application's constructor as opposed to creating a function in
> the bootstrap?

Not currently. A fix is scheduled for 1.10.

> Instead of this:
>
> class Bootstrap extends Zend_Application_Bootstrap_Bootstrap
> {
>     protected function _initAutoloader()
>     {
>         $moduleLoader = new Zend_Application_Module_Autoloader(array(
>             'basePath' => APPLICATION_PATH,
>             'namespace' => '',
>         ));
>     }
>
> place a config option in application.ini for example?

--
Matthew Weier O'Phinney
Project Lead            | [hidden email]
Zend Framework          | http://framework.zend.com/