Interface

eZ\Publish\Core\IO\UrlRedecoratorInterface

interface UrlRedecoratorInterface

Converts an URL from one decorator to another.

```php $redecorator = new UrlRedecorator( new Prefix( 'a' ), new Prefix( 'b' ) );

$redecorator->redecorateFromSource( 'a/url' ); // 'b/url'

$redecorator->redecorateFromTarget( 'b/url' ); // 'a/url' ```

Methods

string redecorateFromSource(string $uri)

Redecorates $uri from source to target.

string redecorateFromTarget(string $uri)

Redecorates $uri from source to target.

Details

at line 40
public string redecorateFromSource(string $uri)

Redecorates $uri from source to target.

Parameters

string $uri

Return Value

string

Exceptions

InvalidBinaryFileIdException If $uri couldn't be interpreted b y the target decorator

at line 51
public string redecorateFromTarget(string $uri)

Redecorates $uri from source to target.

Parameters

string $uri

Return Value

string

Exceptions

InvalidBinaryFileIdException If $uri couldn't be interpreted b y the target decorator