public function defaultSpaRobotsTxt($request, $match)
    {
        $name = Tenant_Service::setting('spa.default', 'not-found');
        $spa = Tenant_SPA::getSpaByName($name);
        if (! isset($spa)) {
            $spa = Tenant_SpaService::getNotfoundSpa();
        }
        $resourcePath = $spa->getResourcePath('robots.txt');
        $host = ($request->https ? 'https://' : 'http://') . $request->SERVER['HTTP_HOST'];
        return new Tenant_HTTP_Response_RobotsTxt($host, $resourcePath);
    }
public function defaultSpaRobotsTxt($request, $match)
    {
        $name = Tenant_Service::setting('spa.default', 'not-found');
        $spa = Tenant_SPA::getSpaByName($name);
        if (! isset($spa)) {
            $spa = Tenant_SpaService::getNotfoundSpa();
        }
        $resourcePath = $spa->getResourcePath('robots.txt');
        $host = ($request->https ? 'https://' : 'http://') . $request->SERVER['HTTP_HOST'];
        return new Tenant_HTTP_Response_RobotsTxt($host, $resourcePath);
    }
public function defaultSpaRobotsTxt ( $ request , $ match ) { $ name = Tenant_Service :: setting ( 'spa.default' , 'not-found' ) ; $ spa = Tenant_SPA :: getSpaByName ( $ name ) ; if ( ! isset ( $ spa ) ) { $ spa = Tenant_SpaService :: getNotfoundSpa ( ) ; } $ resourcePath = $ spa -> getResourcePath ( 'robots.txt' ) ; $ host = ( $ request -> https ? 'https://' : 'http://' ) . $ request -> SERVER [ 'HTTP_HOST' ] ; return new Tenant_HTTP_Response_RobotsTxt ( $ host , $ resourcePath ) ; }
Load robots.txt of default spa

@param Pluf_HTTP_Request $request
@param array $match
@return Pluf_HTTP_Response_File|Pluf_HTTP_Response
Load robots . txt of default spa