- /**
- * @param null|WebRequest $x
- * @return WebRequest
- */
- public function request( WebRequest $x = null ) {
- $old = $this->context->getRequest();
- if ( $x ) {
- $this->context->setRequest( $x );
- }
- return $old;
- }
-
- /**
- * @param null|OutputPage $x
- * @return OutputPage
- */
- public function output( OutputPage $x = null ) {
- $old = $this->context->getOutput();
- if ( $x ) {
- $this->context->setOutput( $x );
- }
- return $old;
- }
-