Voter causing 500 error rather than 403-Collection of common programming errors

I’ve created a custom voter that denies access to my API if the request doesn’t contain a valid auth header. It’s based on a combination of two cookbook entries: http://symfony.com/doc/current/cookbook/security/voters.html and http://symfony.com/doc/current/cookbook/security/custom_authentication_provider.html

Originally posted 2013-11-27 12:01:21.