SecurityExtension::addSecurityListenerFactory()

addSecurityListenerFactory(SecurityFactoryInterface $factory) Parameters SecurityFactoryInterface $factory

SecurityExtension::getConfiguration()

ConfigurationInterface|null getConfiguration(array $config, ContainerBuilder $container) Returns extension configuration. Parameters array $config An array of configuration values ContainerBuilder $container A ContainerBuilder instance Return Value ConfigurationInterface|null The configuration or null

SecurityExtension

class SecurityExtension extends Extension SecurityExtension. Methods string getXsdValidationBasePath() Returns the base path for the XSD files. string getNamespace() Returns the namespace to be used for this extension (XML namespace). string getAlias() Returns the recommended alias to use in XML. from Extension ConfigurationInterface|null getConfiguration(array $config, ContainerBuilder $container) Returns extension configuration. array getClassesToCompile() Gets the c

SecurityExtension::addUserProviderFactory()

addUserProviderFactory(UserProviderFactoryInterface $factory) Parameters UserProviderFactoryInterface $factory

SecurityDataCollector::supportsRoleHierarchy()

bool supportsRoleHierarchy() Checks if the data contains information about inherited roles. Still the inherited roles can be an empty array. Return Value bool true if the profile was contains inherited role information

SecurityEvents

class SecurityEvents Constants INTERACTIVE_LOGIN The INTERACTIVE_LOGIN event occurs after a user is logged in interactively for authentication based on http, cookies or X509. SWITCH_USER The SWITCH_USER event occurs before switch to another user and before exit from an already switched user.

SecurityDataCollector::isAuthenticated()

bool isAuthenticated() Checks if the user is authenticated or not. Return Value bool true if the user is authenticated, false otherwise

SecurityExtension

class SecurityExtension extends Twig_Extension SecurityExtension exposes security context features. Methods __construct(AuthorizationCheckerInterface $securityChecker = null) isGranted($role, $object = null, $field = null) getFunctions() {@inheritdoc} getName() {@inheritdoc} Details __construct(AuthorizationCheckerInterface $securityChecker = null) Parameters AuthorizationCheckerInterface $securityChecker

SecurityDataCollector::isEnabled()

bool isEnabled() Checks if security is enabled. Return Value bool true if security is enabled, false otherwise

SecurityDataCollector::getVoters()

string[] getVoters() Returns the FQCN of the security voters enabled in the application. Return Value string[]