Added getContext method to shell

This commit is contained in:
Chris 2017-01-28 13:00:26 +01:00
parent 7c76928c3b
commit ec60970b5d

View File

@ -90,6 +90,16 @@ class Shell
} }
} }
/**
* Return the current context
*
* @return Context The current context
*/
public function getContext()
{
return $this->context;
}
/** /**
* Push a new primary context, saving the previous contexts on a stack. * Push a new primary context, saving the previous contexts on a stack.
* *