Updated examples to reflect changes in Symfony 2.6, and the depracated Symfony\Component\Security\Core\SecurityContext class - specifically: symfony/symfony#11690