src/controllers/DefaultController.php
/**
     * @param string $tag debug data tag.
     * @param int $maxRetry maximum numbers of tag retrieval attempts.
     * @throws NotFoundHttpException if specified tag not found.
     */
@param string $tag debug data tag.
@param int $maxRetry maximum numbers of tag retrieval attempts.
@throws NotFoundHttpException if specified tag not found.
@param string $tag debug data tag . @param int $maxRetry maximum numbers of tag retrieval attempts . @throws NotFoundHttpException if specified tag not found .
public function loadData($tag, $maxRetry = 0)
    {
        for ($retry = 0; $retry <= $maxRetry; ++$retry) {
            $manifest = $this->getManifest($retry > 0);
            if (isset($manifest[$tag])) {
                $data = $this->module->logTarget->loadTagToPanels($tag);
                $this->summary = $data['summary'];
                return;
            }
            sleep(1);
        }
        throw new NotFoundHttpException("Unable to find debug data tagged with '$tag'.");
    }
public function loadData ( $ tag , $ maxRetry = 0 ) { for ( $ retry = 0 ; $ retry <= $ maxRetry ; ++ $ retry ) { $ manifest = $ this -> getManifest ( $ retry > 0 ) ; if ( isset ( $ manifest [ $ tag ] ) ) { $ data = $ this -> module -> logTarget -> loadTagToPanels ( $ tag ) ; $ this -> summary = $ data [ 'summary' ] ; return ; } sleep ( 1 ) ; } throw new NotFoundHttpException ( " Unable to find debug data tagged with ' $ tag '. " ) ; }
@param string $tag debug data tag.
@param string $tag debug data tag .
// retry loading debug data because the debug data is logged in shutdown function // which may be delayed in some environment if xdebug is enabled. // See: https://github.com/yiisoft/yii2/issues/1504