wrong indentation:

````php
$container
    ->register(
        'security.access.post_document_voter',
        'Acme\DemoBundle\Security\Authorization\Voter\PostVoter'
    )
    ->addTag('security.voter')
;
````