InMemoryTokenProvider::loadTokenBySeries()

PersistentTokenInterface loadTokenBySeries(string $series) Loads the active token for the given series. Parameters string $series Return Value PersistentTokenInterface Exceptions TokenNotFoundException if the token is not found

InMemoryTokenProvider::updateToken()

updateToken(string $series, string $tokenValue, DateTime $lastUsed) Updates the token according to this data. Parameters string $series string $tokenValue DateTime $lastUsed Exceptions TokenNotFoundException if the token is not found

InMemoryUserProvider::createUser()

createUser(UserInterface $user) Adds a new User to the provider. Parameters UserInterface $user A UserInterface instance Exceptions LogicException

InMemoryUserProvider

class InMemoryUserProvider implements UserProviderInterface InMemoryUserProvider is a simple non persistent user provider. Useful for testing, demonstration, prototyping, and for simple needs (a backend with a unique admin for instance) Methods __construct(array $users = array()) Constructor. createUser(UserInterface $user) Adds a new User to the provider. UserInterface loadUserByUsername(string $username) Loads the user for the given username. UserInterface refreshUser(Us

InMemoryTokenProvider::deleteTokenBySeries()

deleteTokenBySeries(string $series) Deletes all tokens belonging to series. Parameters string $series

InMemoryTokenProvider::createNewToken()

createNewToken(PersistentTokenInterface $token) Creates a new token. Parameters PersistentTokenInterface $token

InMemoryTokenProvider

class InMemoryTokenProvider implements TokenProviderInterface This class is used for testing purposes, and is not really suited for production. Methods PersistentTokenInterface loadTokenBySeries(string $series) Loads the active token for the given series. updateToken(string $series, string $tokenValue, DateTime $lastUsed) Updates the token according to this data. deleteTokenBySeries(string $series) Deletes all tokens belonging to series. createNewToken(PersistentTokenInter

InMemoryFactory::getKey()

getKey()

InMemoryFactory::addConfiguration()

addConfiguration(NodeDefinition $node) Parameters NodeDefinition $node

InMemoryFactory

class InMemoryFactory implements UserProviderFactoryInterface InMemoryFactory creates services for the memory provider. Methods create(ContainerBuilder $container, $id, $config) getKey() addConfiguration(NodeDefinition $node) Details create(ContainerBuilder $container, $id, $config) Parameters ContainerBuilder $container $id $config getKey() addConfigura