I am currently working on a project using Symfony2 and I do not need the Doctrine Bundle package. I tried to remove it in many cases, but I keep getting errors that violate the installation.
I have grep'ed for all instances of Doctrine in the application directory and commented on any link to Doctrine in the following files:
- application /Config/config.yml
- application /AppKernel.php
- application /autoload.php
Then I cleared the cache (currently working in dev mode, so I deleted the cache / dev directory).
The error I'm getting right now: Fatal error: Class 'Doctrine \ Common \ Annotations \ FileCacheReader' not found in /path/to/application/app/cache/dev/appDevDebugProjectContainer.php on line 45
This refers to this block of code in the cache.
protected function getAnnotationReaderService() { return $this->services['annotation_reader'] = new \Doctrine\Common\Annotations\FileCacheReader(new \Doctrine\Common\Annotations\AnnotationReader(), '/path/to/application/app/cache/dev/annotations', true); }
but I canโt find a way to stop this adding to the cache, because I canโt find any parameters related to annotation_reader.
Can anyone help?
source share