You didn't, I meant this:

````php
        public function showAction()
        {
            // get a Post instance
            $post = ...;

            // keep in mind, this will call all registered security voters
            if (false === $this->get('security.context')->isGranted('view', $post)) {
                throw new AccessDeniedException('Unauthorised access!');
            }

            return new Response('<h1>'.$post->getName().'</h1>');
        }
    }
````