namespace hoplite\http;
-require_once HOPLITE_ROOT . '/base/weak_interface.php';
require_once HOPLITE_ROOT . '/http/request.php';
require_once HOPLITE_ROOT . '/http/response.php';
require_once HOPLITE_ROOT . '/http/response_code.php';
/*! @var OutputFilter */
private $output_filter = NULL;
- /*! @var WeakInterface<RootControllerDelegate> */
+ /*! @var RootControllerDelegate */
private $delegate = NULL;
/*!
'_COOKIE' => &$globals['_COOKIE'],
'_SERVER' => &$globals['_SERVER']
);
- $this->delegate = new \hoplite\base\WeakInterface('hoplite\http\RootControllerDelegate');
}
/*! Accessors */
/*! Sets the delegate. */
public function set_delegate($delegate)
{
- $this->delegate->Bind($delegate);
+ $this->delegate = $delegate;
}
public function delegate()
{
}
/*!
- Delegate for the root controller. The controller uses WeakInterface to call
- these methods, so they're all optional.
+ Delegate for the root controller. All methods are optional.
*/
interface RootControllerDelegate
{