src/Environment.php
public function enterContext(Context $context): void
    {
        // Already in the context.
        if ($this->context && $this->context->match($context)) {
            return;
        }

        $this->switchContext($context, true);
    }
public function enterContext(Context $context): void
    {
        // Already in the context.
        if ($this->context && $this->context->match($context)) {
            return;
        }

        $this->switchContext($context, true);
    }
Enter a context.

@param Context $context Context.

@return void