ZF-6471: Pass Bootstrap to Resources constructor

Issue Type: Improvement Created: 2009-04-29T10:41:36.000+0000 Last Updated: 2009-05-09T08:14:01.000+0000 Status: Resolved Fix version(s): - 1.8.1 (12/May/09)

Reporter: Markus (rockaut) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Application

Related issues: Attachments:


If a Resource set* function is called through it's constructor and the Resource depends on another Resource (e.g. View) there is no way to get it. setBootstrap is called after construction of the resource so there is no way to get other resources before.

public function setDoctype { $this->getBootstrap()->getResource('view')->doctype('XHTML1_STRICT'); //don't work because getBootstrap returns null. }


Posted by Matthew Weier O'Phinney (matthew) on 2009-05-09T08:13:59.000+0000

Fixed in trunk and 1.8 release branch.

Have you found an issue?

See the Overview section for more details.


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

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