Accoording to this tutorial I wanted to create a simple login, when ZF2 threw this ‘helpful’ errormessage:
Fatal error: Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found in \zendframework\zendframework\library\Zend\Code\Annotation\Parser\DoctrineAnnotationParser.php on line 42
Turns out when using that stupid composer the way it is recommended in the official tutorial, it doesn’t install doctrine (WTF?!). So the following must be done:
- in vendor/compuser/installed.json add a row in require :
"require": { "doctrine/common": ">=2.1", //neu "php": ">=5.3.3" },
- start the console and call the following:
php composer.phar update
And suddenly it works.