Skip to content

Commit

Permalink
Share context onto cubex if we were unable to retrieve one
Browse files Browse the repository at this point in the history
  • Loading branch information
bajb committed Nov 4, 2023
1 parent fc0c0e9 commit 97998f2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Cubex.php
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,7 @@ public function getContext(): Context
catch(Exception $e)
{
$ctx = $this->_defaultContextFactory()();
$this->share(Context::class, $ctx);
}

return $ctx;
Expand Down

0 comments on commit 97998f2

Please sign in to comment.