protected $page;
/**
- * RequestContext if specified; otherwise we'll use the Context from the Page
- * @var RequestContext
+ * IContextSource if specified; otherwise we'll use the Context from the Page
+ * @var IContextSource
*/
protected $context;
}
/**
- * Get the RequestContext in use here
- * @return RequestContext
+ * Get the IContextSource in use here
+ * @return IContextSource
*/
protected final function getContext() {
- if ( $this->context instanceof RequestContext ) {
+ if ( $this->context instanceof IContextSource ) {
return $this->context;
}
return $this->page->getContext();