PHP Class Adamgoose\Routing\Annotations\Annotations\Controller

Inheritance: extends Annotation
Show file Open project: adamgoose/laravel-annotations

Public Methods

Method Description
modifyCollection ( EndpointCollection $endpoints, ReflectionClass $class )

Protected Methods

Method Description
prefixEndpoints ( EndpointCollection $endpoints ) : void Set the prefixes on the endpoints.
setEndpointDomains ( EndpointCollection $endpoints ) : void Set the domain on the endpoints.
trimPath ( string $prefix, string $path ) : string Trim the path slashes for a given prefix and path.

Method Details

modifyCollection() public method

public modifyCollection ( EndpointCollection $endpoints, ReflectionClass $class )
$endpoints Adamgoose\Routing\Annotations\EndpointCollection
$class ReflectionClass

prefixEndpoints() protected method

Set the prefixes on the endpoints.
protected prefixEndpoints ( EndpointCollection $endpoints ) : void
$endpoints Adamgoose\Routing\Annotations\EndpointCollection
return void

setEndpointDomains() protected method

Set the domain on the endpoints.
protected setEndpointDomains ( EndpointCollection $endpoints ) : void
$endpoints Adamgoose\Routing\Annotations\EndpointCollection
return void

trimPath() protected method

Trim the path slashes for a given prefix and path.
protected trimPath ( string $prefix, string $path ) : string
$prefix string
$path string
return string