Question

I'm just about to include the DoctrineExtensions to my Symfony2 project.

While scanning the documentation I read about the possibility to include the StofDoctrineExtensionsBundle instead of including it manually. Quoting from the Stof bundles' Readme.md:

This bundle provides integration for DoctrineExtensions in your Symfony2 Project.

Maybe you made any experiences about including via the Stof bundle? Does this always deliver the latest stable release and include all requirements?

Would you rather recommend to integrate manually or with the Stof bundle?

Was it helpful?

Solution

From the composer.json its:

"require": {
    "php": ">=5.3.2",
    "symfony/framework-bundle": "~2.1",
    "gedmo/doctrine-extensions": "~2.3.1"
}

This means that the current version of StofDoctrineExtensionsBundle will try and get doctrine-extensions between 2.3.1 and, not including, 2.4.

Composer will take care of finding the dependencies you need to make it run. I've included StofDoctrineExtensionsBundle in my projects to use Timestampable without any problems.

I recommend using the StofDoctrineExtensionsBundle.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top