%PDF- %PDF-
Direktori : /home/silvzytp/ccd-ind-code/vendor/laravel/framework/src/Illuminate/Routing/Matching/ |
Current File : //home/silvzytp/ccd-ind-code/vendor/laravel/framework/src/Illuminate/Routing/Matching/SchemeValidator.php |
<?php namespace Illuminate\Routing\Matching; use Illuminate\Http\Request; use Illuminate\Routing\Route; class SchemeValidator implements ValidatorInterface { /** * Validate a given rule against a route and request. * * @param \Illuminate\Routing\Route $route * @param \Illuminate\Http\Request $request * @return bool */ public function matches(Route $route, Request $request) { if ($route->httpOnly()) { return ! $request->secure(); } elseif ($route->secure()) { return $request->secure(); } return true; } }