From 7a0dbf8007bcb8b74ceba1308686fd427137c3fd Mon Sep 17 00:00:00 2001 From: Enrico Zimuel Date: Thu, 1 Mar 2018 18:19:21 +0100 Subject: [PATCH] Added backslash for pipe in docs --- doc/book/methods.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/doc/book/methods.md b/doc/book/methods.md index d3a3a2fa..c88113bc 100644 --- a/doc/book/methods.md +++ b/doc/book/methods.md @@ -31,9 +31,9 @@ order to query for permissions. Method signature | Description --------------------------------------------------------------------------- | ----------- -`addRole(string|RoleInterface $child, array|RoleInterface $parents = null)` | Add a role to the RBAC. If `$parents` is non-null, the `$child` is also added to any parents provided. +`addRole(string\|RoleInterface $child, array\|RoleInterface $parents = null)` | Add a role to the RBAC. If `$parents` is non-null, the `$child` is also added to any parents provided. `getRole(string $role) : RoleInterface` | Get the role specified by name, raising an exception if not found. -`hasRole(string|RoleInterface $role) : bool` | Recursively queries the RBAC for the given role, returning `true` if found, `false` otherwise. +`hasRole(string\|RoleInterface $role) : bool` | Recursively queries the RBAC for the given role, returning `true` if found, `false` otherwise. `getCreateMissingRoles() : bool` | Retrieve the flag that determines whether or not `$parent` roles are added automatically if not present when calling `addRole()`. `setCreateMissingRoles(bool $flag) : void` | Set the flag that determines whether or not `$parent` roles are added automatically if not present when calling `addRole()`. -`isGranted(string|RoleInterface $role, string $permission, $assert = null)` | Determine if the role has the given permission. If `$assert` is provided and either an `AssertInterface` instance or callable, it will be queried before checking against the given role. +`isGranted(string\|RoleInterface $role, string $permission, $assert = null)` | Determine if the role has the given permission. If `$assert` is provided and either an `AssertInterface` instance or callable, it will be queried before checking against the given role.