I see now that the doc pages are quite inconsistent on this. In this specific page it even changes per example. What exactly is the standard on this?

If I look at this page: http://symfony.com/doc/current/cookbook/form/direct_submit.html, I see that the namespace declaration is always there, but the use statements are simply replaced by ``// ...``

http://symfony.com/doc/current/contributing/documentation/standards.html doesn't say anything about it