SecurityHelper
class SecurityHelper extends Helper
SecurityHelper предоставляет чтение-только доступ к проверке безопасности.
Методы
| setCharset(string $charset) Устанавливает по умолчанию кодировку. | from Helper | |
| string | getCharset() Возвращает кодировку по умолчанию. | from Helper |
| __construct(AuthorizationCheckerInterface $securityChecker = null) | ||
| isGranted($role, $object = null, $field = null) | ||
| string | getName() Возвращает каноническое имя этого помощника. |
Подробности
setCharset(string $charset)
Устанавливает по умолчанию кодировку.
Параметры
| string | $charset | Кодировка |
string getCharset()
Возвращает кодировку по умолчанию.
Возвращаемое значение
| string | Кодировка по умолчанию |
__construct(AuthorizationCheckerInterface $securityChecker = null)
Параметры
| AuthorizationCheckerInterface | $securityChecker |
isGranted($role, $object = null, $field = null)
Параметры
| $role | ||
| $object | ||
| $field |
string getName()
Возвращает каноническое имя этого помощника.
Возвращаемое значение
| string | Каноническое имя |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/2.7/Symfony/Bundle/SecurityBundle/Templating/Helper/SecurityHelper.html