FOSUserBundle for symfony 2.4.3 - php

I want to start a new project on symfony 2.4.3 and I need the functionality of the fosuserbundle. My Problem: On their github (https://github.com/FriendsOfSymfony/FOSUserBundle) in the documentation they recommand 2.1.x.
Here , a user says you should install fosuserbundle manually but this question is for symfony 2.3.
Can I use the bundle on my version of symfony? If yes, can I install it with composer? If no, are there any similar bundles that I can use instead?
Thanks in advance

This version of the bundle requires Symfony 2.1+. If you are using Symfony 2.0.x, please use the 1.2.x releases of the bundle.
From their docs. 2.1+ means, 2.1, 2.2, 2.3, 2.4, ... 2.n So 2.3 is perfectly valid.
Moreover, Composer handles the dependencies for you, so just require it and run composer update, if the Symfony version is not supported the command fails and you know it doesn't support your current version, if it succeeds everything is working perfectly.

Related

FOSElasticaBundle for symfony 3?

I'm looking to integrate the FOSElasticaBundle into my symfony 3 project. Currently this bundle doesn't support symfony 3. I was ondering what I could do to still implement it?
Seems is not yet tagged a valid release for using it via packagist. See this issue on github.
The release dev-master / 3.2.x-dev seems already compliant with symfony3.
I successfully installed this bundle on a symfony3 installation with the command :
composer require friendsofsymfony/elastica-bundle dev-master
Hope this help

symfony 2 sylius bundle lost (TranslationBundle )

I try to install Sylius ResourceBundle on my project but when i run my symfony project, i get this error :
Class 'Sylius\Bundle\TranslationBundle\DependencyInjection\AbstractTranslationExtension' not found
I can't find Sylius TranslationBundle .
How can i fix it ?
There is a bug in version 0.13. You probably want to use version 0.12 until the new one is more stable. Otherwise install the edge version (replace "~0.13.*" with "dev-master" in your composer.json file) and hope for the best.
This is fixed in the 0.14#dev.

Migrate Symfoy 2.0.15 app to newest release, the right way

I have a project (developed by others) running on Symfony 2.0.15 and I need to upgrade it to newest Symfony2 version cause I need to add some new code and it's been hard to get it done. I can't find enough information for this, can any give me some links or experiences around migration process? Will be fine to migrate directly from that version to 2.6.6 (stable) or 2.7 (beta)? What would you do and how?
You can add version 2.7 replace with 2.0.15 into composer.json. Then run the command php composer.phar install.
then your project will be upgraded to 2.7.
This link will be helpful for you
http://symfony.com/doc/current/cookbook/upgrading.html

Symfony2 without Doctrine

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.

Which version of gedmo should I specify for Doctrine 2.1.7 with symofny2.0.15?

My Bash refuse to process to a databse update since I've installed gedmo for S2.
I'm wondering if its because I've installed the wrong version of Gedmo.
I have Doctrine 2.1.7 and i need to install the 2.1.x version of gedmo-doctrine-extensions how can specify this to my deps file ?
For now I have
[gedmo-doctrine-extensions]
git=http://github.com/l3pp4rd/DoctrineExtensions.git
But when trying to enter the doctrine:schema:update --force command, I have "Class 'Doctrine\Common\Persistence\Mapping\Driver\DefaultFileLocator' not found in (my path)\vendor\gedmo-doctrine-extension\lib\Gedmo\Mapping\ExtensionMetadataFactory.php on line 170"
So i'm assuming it is due to the version of gedmo I use, Am I Right ?
I'm using 2.3.0 version for my project based on Symfony 2.0.15 and Doctrine 2.1.7
[gedmo-doctrine-extensions]
git=http://github.com/l3pp4rd/DoctrineExtensions.git
version=v2.3.0
Anyhow you can look on http://github.com/l3pp4rd/DoctrineExtensions.git to see what version you want/need and add it into your deps file under version option.
P.S. I guess you already know, but when you add version info into your deps file, you need to run vendors script, or if you're using composer use it to update dependencies.

Categories