PHP Class Devmatic\InstantClick\Middleware\FilterIfInstantClick

Datei anzeigen Open project: devmatic/laravel-instantclick

Protected Properties

Property Type Description
$crawler Symfony\Component\DomCrawler\Crawler The DomCrawler instance.

Public Methods

Method Description
handle ( Illuminate\Http\Request $request, Closure $next ) : mixed Handle an incoming request.
isInstantClickRequest ( Illuminate\Http\Request $request ) : boolean Determine if the request is the result of an InstantClick call.

Protected Methods

Method Description
fetchContainer ( Crawler $crawler, string $container ) : string
filterResponse ( Illuminate\Http\Response $response, string $container )
getCrawler ( Illuminate\Http\Response $response ) : Crawler Get the DomCrawler instance.
makeTitle ( Crawler $crawler ) : null | string
setResponseHeader ( Illuminate\Http\Response $response )

Method Details

fetchContainer() protected method

protected fetchContainer ( Crawler $crawler, string $container ) : string
$crawler Symfony\Component\DomCrawler\Crawler
$container string
return string

filterResponse() protected method

protected filterResponse ( Illuminate\Http\Response $response, string $container )
$response Illuminate\Http\Response
$container string

getCrawler() protected method

Get the DomCrawler instance.
protected getCrawler ( Illuminate\Http\Response $response ) : Crawler
$response Illuminate\Http\Response
return Symfony\Component\DomCrawler\Crawler

handle() public method

Handle an incoming request.
public handle ( Illuminate\Http\Request $request, Closure $next ) : mixed
$request Illuminate\Http\Request
$next Closure
return mixed

isInstantClickRequest() public method

Determine if the request is the result of an InstantClick call.
public isInstantClickRequest ( Illuminate\Http\Request $request ) : boolean
$request Illuminate\Http\Request
return boolean

makeTitle() protected method

protected makeTitle ( Crawler $crawler ) : null | string
$crawler Symfony\Component\DomCrawler\Crawler
return null | string

setResponseHeader() protected method

protected setResponseHeader ( Illuminate\Http\Response $response )
$response Illuminate\Http\Response

Property Details

$crawler protected_oe property

The DomCrawler instance.
protected Crawler,Symfony\Component\DomCrawler $crawler
return Symfony\Component\DomCrawler\Crawler