Add command delegate

Fix https://github.com/doctrine/DoctrineBundle/issues/249