Adamgoose\Routing\Annotations\Annotations\Controller::prefixEndpoints PHP Method

prefixEndpoints() protected method

Set the prefixes on the endpoints.
protected prefixEndpoints ( EndpointCollection $endpoints ) : void
$endpoints Adamgoose\Routing\Annotations\EndpointCollection
return void
    protected function prefixEndpoints(EndpointCollection $endpoints)
    {
        foreach ($endpoints->getAllPaths() as $path) {
            $path->path = $this->trimPath($this->prefix, $path->path);
        }
    }