public function executeRead(AgaviRequestDataHolder $rd)
 {
     // Detect basic auth and do the login!
     if ($this->getContext()->getUser()->isAuthenticated() === false && AppKitFactories::getInstance()->getFactory('AuthProvider') instanceof AppKitAuthProviderHttpBasic) {
         $this->setAttribute('redirect', 'appkit.login');
     }
     return 'Success';
 }
 /**
  * Delayed debug method, write test data to the queue to display within the site
  * after one request
  *
  * @param mixed $mixed
  * @return boolean
  */
 public static function debugOut($mixed)
 {
     $queue = AppKitFactories::getInstance()->getFactory('MessageQueue');
     if ($queue instanceof AppKitQueue) {
         $args = func_get_args();
         if (count($args) == 1) {
             $args = $args[0];
         }
         ob_start();
         var_dump($args);
         $data = ob_get_clean();
         $queue->enqueue(AppKitMessageQueueItem::Debug($data));
     }
     return true;
 }