PHP Class Devmatic\InstantClick\Middleware\FilterIfInstantClick

Afficher le fichier Open project: devmatic/laravel-instantclick

Protected Properties

Свойство Type Description
$crawler Symfony\Component\DomCrawler\Crawler The DomCrawler instance.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode 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 méthode

protected fetchContainer ( Crawler $crawler, string $container ) : string
$crawler Symfony\Component\DomCrawler\Crawler
$container string
Résultat string

filterResponse() protected méthode

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

getCrawler() protected méthode

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

handle() public méthode

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

isInstantClickRequest() public méthode

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

makeTitle() protected méthode

protected makeTitle ( Crawler $crawler ) : null | string
$crawler Symfony\Component\DomCrawler\Crawler
Résultat null | string

setResponseHeader() protected méthode

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
Résultat Symfony\Component\DomCrawler\Crawler