comparison core/lib/Drupal/Core/Extension/Extension.php @ 5:12f9dff5fda9 tip

Update to Drupal core 8.7.1
author Chris Cannam
date Thu, 09 May 2019 15:34:47 +0100
parents a9cd425dd02b
children
comparison
equal deleted inserted replaced
4:a9cd425dd02b 5:12f9dff5fda9
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 }