Symfony2 without doctrine

How can I install symfony2 without Doctrine?

I tried to remove the package using the linker and remove the package manually, but always get errors.

My application will receive data from Restful WS, so I don’t need Doctrine at all.

+7
php symfony doctrine composer-php
source share
1 answer
  1. Create a Symfony Standard Edition project using the Symfony installer :

    symfony new symfony-se

  2. Remove doctrine/doctrine-bundle and doctrine/orm from your composer.json .

  3. Remove the DoctrineBundle from the list of registered packages in AppKernel .

  4. Remove the doctrine configuration from app/config/config.yml . You can also delete database related entries from app/config/parameters.yml.dist .

  5. Run composer update .

Note that you will still find several doctrine packages installed. For example, the doctrine/annotations library is used by Symfony to analyze annotations. Doctrine is not only the ORM .

+18
source share

All Articles