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::addUserProviderFactory()

addUserProviderFactory(UserProviderFactoryInterface $factory) Parameters UserProviderFactoryInterface $factory

SecurityExtension::addSecurityListenerFactory()

addSecurityListenerFactory(SecurityFactoryInterface $factory) Parameters SecurityFactoryInterface $factory

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

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

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::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

SecurityDataCollector::isEnabled()

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

SecurityDataCollector::isAuthenticated()

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

SecurityDataCollector::getVoterStrategy()

string getVoterStrategy() Returns the strategy configured for the security voters. Return Value string