프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$urlChainFactory | UrlChain factory | ||
$urlFactory | Url factory |
메소드 | 설명 | |
---|---|---|
__construct ( |
Construct | |
generate ( array $config ) : |
Given a configuration array, generates a chain of urls |
메소드 | 설명 | |
---|---|---|
createUrlChainFromConfig ( array $config, array $defaultHTTPCodes, array $defaultOptions ) : |
Given a config array, create an URLChain instance filled with all defined URL instances. | |
getDefaultHTTPCodes ( array $config ) : string[] | Get default http Codes | |
getDefaultOptions ( array $config ) : array | Get default options | |
getUrlHTTPCodesFromConfig ( mixed $urlConfig, array $defaultHTTPCodes ) : string[] | Get url HTTP Codes given its configuration | |
getUrlInstanceFromConfig ( mixed $urlConfig, array $defaultHTTPCodes, array $defaultOptions, array $profiles ) : URL | Get Url instance given its configuration | |
getUrlOptionsFromConfig ( mixed $urlConfig, array $defaultOptions ) : string[] | Get url options | |
getUrlPathFromConfig ( mixed $urlConfig ) : string | Build the url given the configuration data |
public __construct ( |
||
$urlFactory | Url factory | |
$urlChainFactory | UrlChain factory |
protected getDefaultHTTPCodes ( array $config ) : string[] | ||
$config | array | Configuration |
리턴 | string[] | Array of HTTP Codes |
protected getDefaultOptions ( array $config ) : array | ||
$config | array | Configuration |
리턴 | array | Default options |
protected getUrlHTTPCodesFromConfig ( mixed $urlConfig, array $defaultHTTPCodes ) : string[] | ||
$urlConfig | mixed | Url configuration |
$defaultHTTPCodes | array | Array of HTTP Codes |
리턴 | string[] | Set of HTTP Codes |
protected getUrlOptionsFromConfig ( mixed $urlConfig, array $defaultOptions ) : string[] | ||
$urlConfig | mixed | Url configuration |
$defaultOptions | array | Default options |
리턴 | string[] | Set of HTTP Codes |
protected getUrlPathFromConfig ( mixed $urlConfig ) : string | ||
$urlConfig | mixed | Url configuration |
리턴 | string | Route path |
protected UrlChainFactory,Visithor\Factory $urlChainFactory | ||
리턴 |