Issues

ZF-6613: Module-Bootstraps receive application options

Issue Type: Bug Created: 2009-05-11T18:21:36.000+0000 Last Updated: 2009-05-12T08:00:33.000+0000 Status: Resolved Fix version(s): - 1.8.1 (12/May/09)

Reporter: Sebastian Krebs (kingcrunch) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Application

Related issues: Attachments:

Description

Tested Version is current Trunk Revision 15543

All Modul-Boostraps receive the options set directly to the application-bootstrap.

<pre class="highlight">class Test_Bootstrap extends Zend_Application_Module_Bootstrap {
    protected function _initOptionDump () {
        var_dump ($this->getOptions());
    }
}

output

<pre class="highlight">array
  'bootstrap' => 
    array
      'class' => string 'Bootstrap' (length=9)
      'path' => string '/path/to/Bootstrap.php' (length=57)
  'resources' => 
    array
      'frontController' => 
        array
          'prefixDefaultModule' => string '1' (length=1)
          'throwExceptions' => string '1' (length=1)
          'moduleDirectory' => string 'modules' (length=7)
      'view' => 
        array
          'strictVars' => string '1' (length=1)
          'encoding' => string 'utf-8' (length=5)
      'layout' => 
        array
          'layoutPath' => string 'views/scripts' (length=13)
          'mvcSuccessfulActionOnly' => string '1' (length=1)
      'modules' => string '' (length=0)
      'db' => 
        array
          'adapter' => string 'pdo_sqlite' (length=10)
          'isDefaultTableAdapter' => string '1' (length=1)
          'params' => 
            array
              ...
  'test' => 
    array
      'test' => string 'test' (length=4)
  'includepaths' => 
    array
      'zend' => string '/path/to/Zend' (length=39)
  'test' => string 'test' (length=4)

With XML-Config

<pre class="highlight">Bootstrap11modules1utf-8views/scripts1pdo_sqlite1main.sqlitetest

As you can see the String "test" for key "test" is correctly assign, but also all others, which should not be in there.

Comments

Posted by Matthew Weier O'Phinney (matthew) on 2009-05-12T08:00:32.000+0000

This was fixed with changes for ZF-6545.

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