src/Endpoint/Abstracts/AbstractEndpoint.php
protected function configureURL()
    {
        $url = $this->_URL;
        if ($this->requiresOptions()) {
            foreach ($this->Options as $key => $option) {
                $url = preg_replace('/(\$.*?[^\/]*)/', $option, $url, 1);
            }
        }
        $url = $this->baseUrl.$url;
        $this->setUrl($url);
    }
protected function configureURL()
    {
        $url = $this->_URL;
        if ($this->requiresOptions()) {
            foreach ($this->Options as $key => $option) {
                $url = preg_replace('/(\$.*?[^\/]*)/', $option, $url, 1);
            }
        }
        $url = $this->baseUrl.$url;
        $this->setUrl($url);
    }
protected function configureURL ( ) { $ url = $ this -> _URL ; if ( $ this -> requiresOptions ( ) ) { foreach ( $ this -> Options as $ key => $ option ) { $ url = preg_replace ( '/(\$.*?[^\/]*)/' , $ option , $ url , 1 ) ; } } $ url = $ this -> baseUrl . $ url ; $ this -> setUrl ( $ url ) ; }
Configures the URL, by updating any variable placeholders in the URL property on the Endpoint
- Replaces $module with $this->Module
- Replaces all other variables starting with $, with options in the order they were given
Configures the URL by updating any variable placeholders in the URL property on the Endpoint - Replaces $module with $this - > Module - Replaces all other variables starting with $ with options in the order they were given