public function handle(Event $event)
{
$request = $event->get('request');
if (null !== $this->context->getToken()) {
return;
}
$this->context->setToken(new AnonymousToken($this->key, 'anon.', array()));
if (null !== $this->logger) {
$this->logger->debug(sprintf('Populated SecurityContext with an anonymous Token'));
}
}