Skip to content

Commit

Permalink
Setup destructor first
Browse files Browse the repository at this point in the history
  • Loading branch information
ajbonner committed Jan 31, 2019
1 parent 93e3134 commit 945509c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/code/community/Varien/Autoload.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magento.com for more information.
*
* @category Varien
* @package Varien_Autoload
* @category Varien
* @package Varien_Autoload
* @copyright Copyright (c) 2006-2018 Magento, Inc. (http://www.magento.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
Expand All @@ -44,8 +44,8 @@ class Varien_Autoload
*/
public function __construct()
{
$this->bootstrapComposer();
register_shutdown_function(array($this, 'destroy'));
$this->bootstrapComposer();
$this->_isIncludePathDefined = defined('COMPILER_INCLUDE_PATH');
if (defined('COMPILER_COLLECT_PATH')) {
$this->_collectClasses = true;
Expand Down

0 comments on commit 945509c

Please sign in to comment.