SecurityContextInterface deprecated

interface SecurityContextInterface implements TokenStorageInterface, AuthorizationCheckerInterface deprecated since version 2.6, to be removed in 3.0. The SecurityContextInterface. Constants ACCESS_DENIED_ERROR AUTHENTICATION_ERROR LAST_USERNAME Methods TokenInterface|null getToken() Returns the current security token. from TokenStorageInterface setToken(TokenInterface $token = null) Sets the authentication token. from TokenStorageInterface bool isGranted(mixed

SecurityContext deprecated::setToken()

setToken(TokenInterface $token = null) deprecated deprecated since version 2.6, to be removed in 3.0. Use TokenStorageInterface::setToken() instead. {@inheritdoc} Parameters TokenInterface $token A TokenInterface token, or null if no further authentication information should be stored

SecurityContext deprecated::isGranted()

bool isGranted(mixed $attributes, mixed $object = null) deprecated deprecated since version 2.6, to be removed in 3.0. Use AuthorizationCheckerInterface::isGranted() instead. {@inheritdoc} Parameters mixed $attributes mixed $object Return Value bool

SecurityContext deprecated::getToken()

TokenInterface|null getToken() deprecated deprecated since version 2.6, to be removed in 3.0. Use TokenStorageInterface::getToken() instead. {@inheritdoc} Return Value TokenInterface|null A TokenInterface instance or null if no authentication information is available

SecurityContext deprecated

class SecurityContext implements SecurityContextInterface deprecated since version 2.6, to be removed in 3.0. SecurityContext is the main entry point of the Security component. It gives access to the token representing the current user authentication. Methods __construct(TokenStorageInterface|AuthenticationManagerInterface $tokenStorage, AuthorizationCheckerInterface|AccessDecisionManagerInterface $authorizationChecker, bool $alwaysAuthenticate = false) For backwards compatibility, t

SecurityBundle

class SecurityBundle extends Bundle Bundle. Methods boot() Boots the Bundle. from Bundle shutdown() Shutdowns the Bundle. from Bundle build(ContainerBuilder $container) Builds the bundle. setContainer(ContainerInterface $container = null) Sets the container. from Bundle ExtensionInterface|null getContainerExtension() Returns the bundle's container extension. from Bundle string getNamespace() Gets the Bundle namespace. from Bundle string getPath() Gets the Bundle

Security

class Security This class holds security information. Constants ACCESS_DENIED_ERROR AUTHENTICATION_ERROR LAST_USERNAME MAX_USERNAME_LENGTH

SecureRandomInterface deprecated

interface SecureRandomInterface deprecated since version 2.8, to be removed in 3.0. Use the random_bytes function instead Interface that needs to be implemented by all secure random number generators. Methods string nextBytes(int $nbBytes) Generates the specified number of secure random bytes. Details string nextBytes(int $nbBytes) Generates the specified number of secure random bytes. Parameters int $nbBytes Return Value string

SecureRandom deprecated

class SecureRandom implements SecureRandomInterface deprecated since version 2.8, to be removed in 3.0. Use the random_bytes function instead A secure random number generator implementation. Methods string nextBytes(int $nbBytes) Generates the specified number of secure random bytes. Details string nextBytes(int $nbBytes) Generates the specified number of secure random bytes. Parameters int $nbBytes Return Value string

Section::stopEvent()

StopwatchEvent stopEvent(string $name) Stops an event. Parameters string $name The event name Return Value StopwatchEvent The event Exceptions LogicException When the event has not been started