Skip to content
This repository was archived by the owner on Oct 2, 2019. It is now read-only.

Commit 44c44f2

Browse files
committed
Allow early suppressing of file not found warnings
Needed to prevent warnings when the (default) Bootstrap object is set, which will trigger a load of ZendX_Application_Resource_FrontController
1 parent d036788 commit 44c44f2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/Zend/Application.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,17 @@ class Zend_Application
7070
*
7171
* @param string $environment
7272
* @param string|array|Zend_Config $options String path to configuration file, or array/Zend_Config of configuration options
73+
* @param bool $suppressNotFoundWarnings Should warnings be suppressed when a file is not found during autoloading?
7374
* @throws Zend_Application_Exception When invalid options are provided
7475
* @return void
7576
*/
76-
public function __construct($environment, $options = null)
77+
public function __construct($environment, $options = null, $suppressNotFoundWarnings = null)
7778
{
7879
$this->_environment = (string) $environment;
7980

8081
require_once 'Zend/Loader/Autoloader.php';
8182
$this->_autoloader = Zend_Loader_Autoloader::getInstance();
83+
$this->_autoloader->suppressNotFoundWarnings($suppressNotFoundWarnings);
8284

8385
if (null !== $options) {
8486
if (is_string($options)) {

0 commit comments

Comments
 (0)