Route::addDefaults()

Route addDefaults(array $defaults) Adds defaults. This method implements a fluent interface. Parameters array $defaults The defaults Return Value Route The current Route instance

Route

class Route implements Serializable A Route describes a route and its parameters. Methods __construct(string $path, array $defaults = array(), array $requirements = array(), array $options = array(), string $host = '', string|array $schemes = array(), string|array $methods = array(), string $condition = '') Constructor. serialize() {@inheritdoc} unserialize($serialized) {@inheritdoc} string getPath() Returns the pattern for the path. Route setPath(string $pattern) Set

Route::addOptions()

Route addOptions(array $options) Adds options. This method implements a fluent interface. Parameters array $options The options Return Value Route The current Route instance

Route::compile()

CompiledRoute compile() Compiles the route. Return Value CompiledRoute A CompiledRoute instance Exceptions LogicException If the Route cannot be compiled because the path or host pattern is invalid See also RouteCompiler which is responsible for the compilation process

Route::addRequirements()

Route addRequirements(array $requirements) Adds requirements. This method implements a fluent interface. Parameters array $requirements The requirements Return Value Route The current Route instance

Route

class Route Annotation class for @Route(). Methods __construct(array $data) Constructor. setPath($path) getPath() setHost($pattern) getHost() setName($name) getName() setRequirements($requirements) getRequirements() setOptions($options) getOptions() setDefaults($defaults) getDefaults() setSchemes($schemes) getSchemes() setMethods($methods) getMethods() setCondition($condition) getCo

RoleVoter

class RoleVoter implements VoterInterface RoleVoter votes if any attribute starts with a given prefix. Methods __construct(string $prefix = 'ROLE_') Constructor. int vote(TokenInterface $token, mixed $subject, array $attributes) Returns the vote for the given parameters. Details __construct(string $prefix = 'ROLE_') Constructor. Parameters string $prefix The role prefix int vote(TokenInterface $token, mixed

RoleSecurityIdentity::getRole()

string getRole() Returns the role name Return Value string

RoleSecurityIdentity

class RoleSecurityIdentity implements SecurityIdentityInterface A SecurityIdentity implementation for roles Methods __construct(mixed $role) Constructor string getRole() Returns the role name equals(SecurityIdentityInterface $sid) This method is used to compare two security identities in order to not rely on referential equality. string __toString() Returns a textual representation of this security identity. Details __construct(mixed $role)

RoutableFragmentRenderer

class RoutableFragmentRenderer implements FragmentRendererInterface Adds the possibility to generate a fragment URI for a given Controller. Methods setFragmentPath(string $path) Sets the fragment path that triggers the fragment listener. Details setFragmentPath(string $path) Sets the fragment path that triggers the fragment listener. Parameters string $path The path See also FragmentListener