addFlash method must be protected in Symfony 2.6

for symfony 2.6 must be addFlash method protected