PHP Class Drest\Mapping\Driver\AbstractDriver

Inheritance: implements Drest\Mapping\Driver\DriverInterface
Datei anzeigen Open project: leedavis81/drest Class Usage Examples

Protected Properties

Property Type Description
$paths array The paths to look for mapping files - immutable as classNames are cached, must be passed on construct.

Public Methods

Method Description
__construct ( $paths = [] )
checkHandleCalls ( array $routeMetaDataArray ) Check handle calls.
getPaths ( ) : array Get paths to annotation classes
loadMetadataForClass ( string $className ) : ClassMetadata Load metadata for the given class name

Protected Methods

Method Description
isDrestResource ( $className )
processRoutes ( array $routes, Drest\Mapping\ClassMetaData $metadata ) Process all routes defined

Method Details

__construct() public method

public __construct ( $paths = [] )

checkHandleCalls() public method

Check handle calls.
public checkHandleCalls ( array $routeMetaDataArray )
$routeMetaDataArray array

getPaths() public method

Get paths to annotation classes
public getPaths ( ) : array
return array

isDrestResource() abstract protected method

abstract protected isDrestResource ( $className )

loadMetadataForClass() abstract public method

Load metadata for the given class name
abstract public loadMetadataForClass ( string $className ) : ClassMetadata
$className string
return ClassMetadata

processRoutes() protected method

Process all routes defined
protected processRoutes ( array $routes, Drest\Mapping\ClassMetaData $metadata )
$routes array
$metadata Drest\Mapping\ClassMetaData

Property Details

$paths protected_oe property

The paths to look for mapping files - immutable as classNames are cached, must be passed on construct.
protected array $paths
return array