VersionStrategyInterface::applyVersion()

string applyVersion(string $path) Applies version to the supplied path. Parameters string $path A path Return Value string The versionized path

VersionStrategyInterface

interface VersionStrategyInterface Asset version strategy interface. Methods string getVersion(string $path) Returns the asset version for an asset. string applyVersion(string $path) Applies version to the supplied path. Details string getVersion(string $path) Returns the asset version for an asset. Parameters string $path A path Return Value string The version string string applyVersion(string $path)

Version::normalize()

static string|null normalize(string $version, int|null $precision) Normalizes a version string to the number of components given in the parameter $precision. Examples: Version::normalize('1.2.3', 1); // => '1' Version::normalize('1.2.3', 2); // => '1.2' Parameters string $version A version string int|null $precision The number of components to include. Pass NULL to return the version unchanged. Return Value string|null The normalized version or NULL if it cou

Version::compare()

static bool compare(string $version1, string $version2, string $operator, int|null $precision = null) Compares two versions with an operator. This method is identical to {@link version_compare()}, except that you can pass the number of regarded version components in the last argument $precision. Examples: Version::compare('1.2.3', '1.2.4', '==') // => false Version::compare('1.2.3', '1.2.4', '==', 2) // => true Parameters string $version1 A version string str

Version

class Version Facilitates the comparison of version strings. Methods static bool compare(string $version1, string $version2, string $operator, int|null $precision = null) Compares two versions with an operator. static string|null normalize(string $version, int|null $precision) Normalizes a version string to the number of components given in the parameter $precision. Details static bool compare(string $version1, string $version2, string $operator, int|n

VariadicValueResolver::supports()

bool supports(Request $request, ArgumentMetadata $argument) Whether this resolver can resolve the value for the given ArgumentMetadata. Parameters Request $request ArgumentMetadata $argument Return Value bool

VariadicValueResolver::resolve()

Generator resolve(Request $request, ArgumentMetadata $argument) Returns the possible value(s). Parameters Request $request ArgumentMetadata $argument Return Value Generator

VariadicValueResolver

class VariadicValueResolver implements ArgumentValueResolverInterface Yields a variadic argument's values from the request attributes. Methods bool supports(Request $request, ArgumentMetadata $argument) Whether this resolver can resolve the value for the given ArgumentMetadata. Generator resolve(Request $request, ArgumentMetadata $argument) Returns the possible value(s). Details bool supports(Request $request, ArgumentMetadata $argument) W

VariableNodeDefinition

class VariableNodeDefinition extends NodeDefinition This class provides a fluent interface for defining a node. Methods __construct(string $name, NodeParentInterface $parent = null) Constructor. from NodeDefinition NodeDefinition|$this setParent(NodeParentInterface $parent) Sets the parent node. from NodeDefinition NodeDefinition|$this info(string $info) Sets info message. from NodeDefinition NodeDefinition|$this example(string|array $example) Sets example configuration. fro

VariableNode::setName()

setName(string $name) Sets the name of the node. Parameters string $name The name of the node