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.8/Symfony/Bundle/SecurityBundle/Templating/Helper/SecurityHelper.html