comparison core/lib/Drupal/Core/Extension/Extension.php @ 18:af1871eacc83

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:33:08 +0100
parents 129ea1e6d783
children
comparison
equal deleted inserted replaced
17:129ea1e6d783 18:af1871eacc83
179 /** 179 /**
180 * Magic method implementation to unserialize the extension object. 180 * Magic method implementation to unserialize the extension object.
181 */ 181 */
182 public function __wakeup() { 182 public function __wakeup() {
183 // Get the app root from the container. 183 // Get the app root from the container.
184 $this->root = DRUPAL_ROOT; 184 $this->root = \Drupal::hasService('app.root') ? \Drupal::root() : DRUPAL_ROOT;
185 } 185 }
186 186
187 } 187 }