SfWebRequestAdapter
extends SfWebRequestAdapterBase
in package
Wraps Illuminate\Http\Request with the sfWebRequest API.
Provides backward compatibility for plugin action classes that call sfWebRequest methods like getParameter(), isMethod(), etc. In dual-stack mode, extends sfWebRequest for type-hint compatibility.
Table of Contents
Methods
- __construct() : mixed
- __get() : mixed
- Magic property access for backward compatibility.
- __isset() : bool
- __set() : void
- get() : mixed
- sfParameterHolder::get() alias for getParameter().
- getAll() : array<string|int, mixed>
- getAttribute() : mixed
- Get a request attribute (used by sfAction::getRoute, etc.).
- getContent() : string
- getContentType() : string
- getCookie() : mixed
- getFiles() : array<string|int, mixed>
- Get uploaded files.
- getGetParameter() : mixed
- Get a specific query parameter.
- getGetParameters() : array<string|int, mixed>
- Get query (GET) parameters.
- getHost() : string
- getHttpHeader() : string|null
- getIlluminateRequest() : Request
- Get the underlying Illuminate Request.
- getMethod() : string
- getNames() : array<string|int, mixed>
- getParameter() : mixed
- getParameterHolder() : self
- getPathInfo() : string
- getPathInfoArray() : array<string|int, mixed>
- getPostParameter() : mixed
- Get POST parameters.
- getPostParameters() : array<string|int, mixed>
- Get POST parameters (form data).
- getReferer() : string|null
- getUri() : string
- has() : bool
- sfParameterHolder::has() alias for hasParameter().
- hasParameter() : bool
- isMethod() : bool
- isSecure() : bool
- isXmlHttpRequest() : bool
- Check if the request is an XMLHttpRequest (AJAX).
- remove() : void
- sfParameterHolder::remove().
- set() : void
- sfParameterHolder::set() alias for setParameter().
- setAttribute() : void
- Set a request attribute.
- setParameter() : void
Methods
__construct()
public
__construct(Request $request) : mixed
Parameters
- $request : Request
__get()
Magic property access for backward compatibility.
public
__get(string $name) : mixed
Symfony templates often access $request->limit, $request->page, etc.
Parameters
- $name : string
__isset()
public
__isset(string $name) : bool
Parameters
- $name : string
Return values
bool__set()
public
__set(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
get()
sfParameterHolder::get() alias for getParameter().
public
get(string $name[, mixed $default = null ]) : mixed
Parameters
- $name : string
- $default : mixed = null
getAll()
public
getAll() : array<string|int, mixed>
Return values
array<string|int, mixed>getAttribute()
Get a request attribute (used by sfAction::getRoute, etc.).
public
getAttribute(string $name[, mixed $default = null ]) : mixed
Parameters
- $name : string
- $default : mixed = null
getContent()
public
getContent() : string
Return values
stringgetContentType()
public
getContentType() : string
Return values
stringgetCookie()
public
getCookie(string $name[, mixed $default = null ]) : mixed
Parameters
- $name : string
- $default : mixed = null
getFiles()
Get uploaded files.
public
getFiles([string|null $key = null ]) : array<string|int, mixed>
Parameters
- $key : string|null = null
Return values
array<string|int, mixed>getGetParameter()
Get a specific query parameter.
public
getGetParameter(string $name[, mixed $default = null ]) : mixed
Parameters
- $name : string
- $default : mixed = null
getGetParameters()
Get query (GET) parameters.
public
getGetParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>getHost()
public
getHost() : string
Return values
stringgetHttpHeader()
public
getHttpHeader(string $name[, mixed $default = null ]) : string|null
Parameters
- $name : string
- $default : mixed = null
Return values
string|nullgetIlluminateRequest()
Get the underlying Illuminate Request.
public
getIlluminateRequest() : Request
Return values
RequestgetMethod()
public
getMethod() : string
Return values
stringgetNames()
public
getNames() : array<string|int, mixed>
Return values
array<string|int, mixed>getParameter()
public
getParameter(string $name[, mixed $default = null ]) : mixed
Parameters
- $name : string
- $default : mixed = null
getParameterHolder()
public
getParameterHolder() : self
Return values
selfgetPathInfo()
public
getPathInfo() : string
Return values
stringgetPathInfoArray()
public
getPathInfoArray() : array<string|int, mixed>
Return values
array<string|int, mixed>getPostParameter()
Get POST parameters.
public
getPostParameter(string $name[, mixed $default = null ]) : mixed
Parameters
- $name : string
- $default : mixed = null
getPostParameters()
Get POST parameters (form data).
public
getPostParameters() : array<string|int, mixed>
Return values
array<string|int, mixed>getReferer()
public
getReferer() : string|null
Return values
string|nullgetUri()
public
getUri() : string
Return values
stringhas()
sfParameterHolder::has() alias for hasParameter().
public
has(string $name) : bool
Parameters
- $name : string
Return values
boolhasParameter()
public
hasParameter(string $name) : bool
Parameters
- $name : string
Return values
boolisMethod()
public
isMethod(string $method) : bool
Parameters
- $method : string
Return values
boolisSecure()
public
isSecure() : bool
Return values
boolisXmlHttpRequest()
Check if the request is an XMLHttpRequest (AJAX).
public
isXmlHttpRequest() : bool
Return values
boolremove()
sfParameterHolder::remove().
public
remove(string $name) : void
Parameters
- $name : string
set()
sfParameterHolder::set() alias for setParameter().
public
set(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
setAttribute()
Set a request attribute.
public
setAttribute(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed
setParameter()
public
setParameter(string $name, mixed $value) : void
Parameters
- $name : string
- $value : mixed