Is it safe to include DoctrineExtensions via the StofDoctrineExtensionsBundle?

205 views Asked by At

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?

1

There are 1 answers

2
GriffinHeart On BEST ANSWER

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.