Skip to content
This repository has been archived by the owner on Jun 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #1 from ekspress-digital/pr/2
Browse files Browse the repository at this point in the history
disable require once call and the autoloader
  • Loading branch information
glensc authored Apr 30, 2019
2 parents 0f43e01 + b22a6fa commit 08c14d6
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions library/Zend/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,10 @@ public function __construct($environment, $options = null, $suppressNotFoundWarn
{
$this->_environment = (string) $environment;

require_once 'Zend/Loader/Autoloader.php';
$this->_autoloader = Zend_Loader_Autoloader::getInstance();
$this->_autoloader->suppressNotFoundWarnings($suppressNotFoundWarnings);
// see https://github.com/zf1/zend-application/pull/2 for discussion
// require_once 'Zend/Loader/Autoloader.php';
// $this->_autoloader = Zend_Loader_Autoloader::getInstance();
// $this->_autoloader->suppressNotFoundWarnings($suppressNotFoundWarnings);

if (null !== $options) {
if (is_string($options)) {
Expand Down

0 comments on commit 08c14d6

Please sign in to comment.