zendframework/zf2 — pull request #1581 by Ocramius (2012-06-23 21:06:23+00:00)
Title: Reuse doctrine common annotations

This PR introduces a dependency to doctrine/common and makes tests depend on composer for autoloading. I also removed some parts of `tests/_autoload.php` since `Zend\Loader\StandardAutoloader` can handle it.

Basically, the idea is that the annotation parser in ZF2 can still exists, but [doctrine/common](https://github.com/doctrine/common) (which is not to be confused with ORM) already has a quite well affirmed syntax that could be re-used and covers all use cases I can think of right now. We should suggest end-users to use this "standard" instead of suggesting a new one that will collide hard with what currently Symfony 2 and Flow3 use.

@ezimuel has already suggested a nice approach at doctrine/common#156 to help in the process of making doctrine annotations compatible with other formats that could be used (since its parser doesn't really like ZF2's annotations right now).

I hope everybody will agree that we don't really need a new format for annotations since the one in doctrine/common has been working for everyone since a couple of years.

[![Build Status](https://secure.travis-ci.org/Ocramius/zf2.png?branch=feature/reuse-doctrine-common-annotations)](http://travis-ci.org/Ocramius/zf2)