How can I install symfony2 without Doctrine?
I have tried removing the package using composer and uninstalling the bundle manually but I get errors always.
My application is going to get the data from a Restful WS, so I don't need Doctrine at all.
Create a Symfony Standard Edition project with the Symfony installer:
symfony new symfony-se
Remove the doctrine/doctrine-bundle
and doctrine/orm
from your composer.json
.
Remove the DoctrineBundle
from a list of registered bundles in AppKernel
.
Remove the doctrine
configuration from the app/config/config.yml
. You can also remove database related entries from the app/config/parameters.yml.dist
.
Run composer update
.
Note that you'll still find some of the doctrine packages installed. For example the doctrine/annotations
library is used by Symfony to parse annotations. Doctrine is not only an ORM.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With