Commit 930b7b89 authored by chgasparoto's avatar chgasparoto Committed by lussoluca

Issue #2752917 by chgasparoto: TraceableContainer relies on implementation details of the container

parent 5c6a5068
......@@ -38,7 +38,7 @@ class TraceableContainer extends Container {
*/
public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE) {
if (!$this->stopwatch && $this->has('stopwatch')) {
$this->stopwatch = $this->createService(unserialize($this->serviceDefinitions['stopwatch']), 'stopwatch');
$this->stopwatch = parent::get('stopwatch');
$this->stopwatch->openSection();
$this->hasStopwatch = TRUE;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment