MatcherDumperInterface::dump()

string dump(array $options = array()) Dumps a set of routes to a string representation of executable code that can then be used to match a request against these routes. Parameters array $options An array of options Return Value string Executable code

MatcherDumperInterface

interface MatcherDumperInterface MatcherDumperInterface is the interface that all matcher dumper classes must implement. Methods string dump(array $options = array()) Dumps a set of routes to a string representation of executable code that can then be used to match a request against these routes. RouteCollection getRoutes() Gets the routes to dump. Details string dump(array $options = array()) Dumps a set of routes to a string representati

MatcherDumper

class MatcherDumper implements MatcherDumperInterface MatcherDumper is the abstract class for all built-in matcher dumpers. Methods __construct(RouteCollection $routes) Constructor. RouteCollection getRoutes() Gets the routes to dump. Details __construct(RouteCollection $routes) Constructor. Parameters RouteCollection $routes The RouteCollection to dump RouteCollection getRoutes() Gets the route

MaskBuilder::reset()

MaskBuilder reset() Resets the PermissionBuilder Return Value MaskBuilder

MaskBuilder::remove()

MaskBuilder remove(mixed $mask) Removes a mask from the permission Parameters mixed $mask Return Value MaskBuilder Exceptions InvalidArgumentException

MaskBuilder::getPattern()

string getPattern() Returns a human-readable representation of the permission Return Value string

MaskBuilder::getCode()

static string getCode(int $mask) Returns the code for the passed mask Parameters int $mask Return Value string Exceptions InvalidArgumentException RuntimeException

MaskBuilder::add()

MaskBuilder add(mixed $mask) Adds a mask to the permission Parameters mixed $mask Return Value MaskBuilder Exceptions InvalidArgumentException

MaskBuilder

class MaskBuilder This class allows you to build cumulative permissions easily, or convert masks to a human-readable format. $builder = new MaskBuilder(); $builder ->add('view') ->add('create') ->add('edit') ; vardump($builder->get()); // int(7) vardump($builder->getPattern()); // string(32) ".............................ECV" We have defined some commonly used base permissions which you can use: - VIEW: the S

MarkdownDescriptor

class MarkdownDescriptor extends Descriptor Markdown descriptor. Methods describe(OutputInterface $output, object $object, array $options = array()) Describes an InputArgument instance. from Descriptor Details describe(OutputInterface $output, object $object, array $options = array()) Describes an InputArgument instance. Parameters OutputInterface $output object $object array $options