Utils
in package
Class Utils
Tags
Table of Contents
Methods
- getBodyContents() : string
- Returns body stream data (it should work like that in order to keep compatibility with some implementations).
- getModelsCacheDirectory() : string
- Returns target directory for the model cache.
- getModelsDirectory() : string
- Returns models directory.
- removeTrailingSlash() : string
- Remove trailing slash from provided text.
- removeVersionFromUri() : string
- Remove version from URI.
Methods
getBodyContents()
Returns body stream data (it should work like that in order to keep compatibility with some implementations).
public
static getBodyContents(StreamInterface $stream) : string
Parameters
- $stream : StreamInterface
Return values
stringgetModelsCacheDirectory()
Returns target directory for the model cache.
public
static getModelsCacheDirectory() : string
Return values
stringgetModelsDirectory()
Returns models directory.
public
static getModelsDirectory() : string
Return values
stringremoveTrailingSlash()
Remove trailing slash from provided text.
public
static removeTrailingSlash(string $text) : string
Parameters
- $text : string
Return values
stringremoveVersionFromUri()
Remove version from URI.
public
static removeVersionFromUri(string $uri) : string
Parameters
- $uri : string