Example #1
0
 /**
  * Cleanup circular references between layout & blocks
  *
  * Destructor should be called explicitly in order to work around the PHP bug
  * https://bugs.php.net/bug.php?id=62468
  */
 public function __destruct()
 {
     if (isset($this->_update) && is_object($this->_update)) {
         $this->_update->__destruct();
         $this->_update = null;
     }
     $this->_blocks = [];
     parent::__destruct();
 }