[Security] fixed exception message in EncoderFactory

This commit is contained in:
Douglas Greenshields 2012-06-20 12:10:08 +01:00
parent 092b5dde62
commit d4b0a9caaa

View File

@ -44,7 +44,7 @@ class EncoderFactory implements EncoderFactoryInterface
return $this->encoders[$class];
}
throw new \RuntimeException(sprintf('No encoder has been configured for account "%s".', is_object($class) ? get_class($user) : $class));
throw new \RuntimeException(sprintf('No encoder has been configured for account "%s".', is_object($user) ? get_class($user) : $user));
}
/**