abstract class BaseAdapter implements ParamConverterInterface, AdapterInterface

Abstract class BaseAdapter which needs to be extended in all custom adapters

Constants

BASE_CONVERTER_NAME

Base name for all converters. Every converter must end with this

Methods

bool
apply(Request $request, ParamConverter $configuration)

Stores the object in the request.

bool
supports(ParamConverter $configuration)

Checks if the object is supported.

mixed
convert(BasicConverter $converter)

No description

string
getNameSpace()

No description

string
getAdapterUtil()

Retruns AdapterUtil class for provided adapter

buildConverterInstance(string $param, Request $request)

Creates converter instance

Details

at line 35
bool apply(Request $request, ParamConverter $configuration)

Stores the object in the request.

Parameters

Request $request The request
ParamConverter $configuration Contains the name, class and options of the object

Return Value

bool True if the object has been successfully set, else false

at line 49
bool supports(ParamConverter $configuration)

Checks if the object is supported.

Parameters

ParamConverter $configuration Should be an instance of ParamConverter

Return Value

bool True if the object is supported, else false

at line 61
mixed convert(BasicConverter $converter)

Parameters

BasicConverter $converter

Return Value

mixed

at line 69
string getNameSpace()

Return Value

string

at line 79
string getAdapterUtil()

Retruns AdapterUtil class for provided adapter

Return Value

string

at line 92
abstract BasicConverter buildConverterInstance(string $param, Request $request)

Creates converter instance

Parameters

string $param
Request $request

Return Value

BasicConverter