public function setController($controller)
 {
     self::$controller = $controller;
 }
 protected static function clearBuffer()
 {
     if (!DebugBar::$bufferingEnabled) {
         return;
     }
     $buffer = ob_get_clean();
     if (!empty($buffer)) {
         unset($_REQUEST['debug_request']);
         // Disable further messages that we can't intercept
         DebugBarSilverStripeCollector::setDebugData($buffer);
     }
 }