symfony - Symfony2 - How to remove the Doctrine Bundle? -


i working on project using symfony2 , have no need doctrine bundle. have tried remove on numerous occasions keep getting errors break install.

i have grep'ed instances of 'doctrine' within app directory , have commented out reference doctrine in following files:

  • app/config/config.yml
  • app/appkernel.php
  • app/autoload.php

i cleared cache (currently working in dev mode, removed cache/dev directory).

the error getting is: fatal error: class 'doctrine\common\annotations\filecachereader' not found in /path/to/application/app/cache/dev/appdevdebugprojectcontainer.php on line 45

this refers block of code in cache

/**  * gets 'annotation_reader' service.  *  * service shared.  * method returns same instance of service.  *  * @return doctrine\common\annotations\filecachereader doctrine\common\annotations\filecachereader instance.  */ 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 cannot find way stop being added cache, cannot find settings relating annotation_reader.

can help??

symfony uses doctrine's annotation library. don't need doctrine's orm or dbal , can remove them. need annotation reader if use annotations anywhere in project.

edit: you'll have test on own. never tried myself.

these bundles seem use annotation reader:

  • doctrinebundle
  • doctrineabstractbundle
  • securityextrabundle
  • frameworkextrabundle
  • frameworkbundle

note it's not worth effort. if you're not using given services they're not created.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -