Hi my application is running with Symfony2.7.15 which contains new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle() in AppKarnel.php as well.
Now we need to make a Restful API to user webservices. I am trying to install FOSRESTBundle for this purpose but I am getting the following error.
friendsofsymfony/rest-bundle 1.8.0 conflicts with sensio/framework-extra-bundle[v3.0.16].
- friendsofsymfony/rest-bundle 1.8.0 conflicts with sensio/framework-extra-bundle[v3.0.16].
- friendsofsymfony/rest-bundle 1.8.0 conflicts with sensio/framework-extra-bundle[v3.0.16].
- Installation request for friendsofsymfony/rest-bundle ^1.8 -> satisfiable by friendsofsymfony/rest-bundle[1.8.0].
- Installation request for sensio/framework-extra-bundle (locked at v3.0.16, required as ^3.0.2) -> satisfiable by sensio/framework-extra-bundle[v3.0.16].
Please suggest how to resolved this.
According to packagist page of friendsofsymfony/rest-bundle the version 1.8.0 that you are installing conflicts with sensio/framework-extra-bundle: >=3.0.13
You have two choices here:
Downgrade sensio/framework-extra-bundle to the first non-conflicting version:
$ composer require sensio/framework-extra-bundle "3.0.12"
Install more recent version of friendsofsymfony/rest-bundle that is compatible with the extra bundle >=3.0.13:
$ composer require friendsofsymfony/rest-bundle "2.0.0"
As far as I can see the newer version is still compatible with Symfony 2.7+ so I would give it a shot.
Check the version of
sensio/framework-extra-bundle
I assume,It's 3.0.16
And FOSRestBundle requires framework-extra-bundle to be 3.0.2,
Update extra-bundle too. This should solve the problem.
I had same problem and just solved it.
FOSRestBundle v1.8.0 conflicts with sensio/framework-extra-bundle v3.0.13 or higher. Mentioned here, https://packagist.org/packages/friendsofsymfony/rest-bundle#1.8.0
Yours is v3.0.16 which is in the conflict range.
Here is the way how you can solve it:
Install FOSRestBundle v2.0.0, which only conflicts with sensio/framework-extra-bundle v3.0.13 or lower versions. So, your v3.0.16 is fine. More details: https://packagist.org/packages/friendsofsymfony/rest-bundle#2.0.0
I resolved it by running these two commands,
$ composer require sensio/framework-extra-bundle "3.0.12"
$ composer require friendsofsymfony/rest-bundle 1.8
Related
I have problem in using mailer in symfony. I want to follow the instruction on symfony website. When I write composer require symfony/mailer in the terminal, I get an error:
Using version ^2.1 for friendsofsymfony/user-bundle
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Restricting packages listed in "symfony/symfony" to "5.0.*"
Your requirements could not be resolved to an installable set of packages.
Problem 1
- friendsofsymfony/user-bundle v2.1.2 requires symfony/form ^2.8 || ^3.0 || ^4.0 -> no matching package found.
- friendsofsymfony/user-bundle v2.1.1 requires symfony/form ^2.8 || ^3.0 || ^4.0 -> no matching package found.
- friendsofsymfony/user-bundle v2.1.0 requires symfony/form ^2.8 || ^3.0 || ^4.0 -> no matching package found.
- Installation request for friendsofsymfony/user-bundle ^2.1 -> satisfiable by friendsofsymfony/user-bundle[v2.1.0, v2.1.1, v2.1.2].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content.
when I check the symfony version in terminal:
Symfony CLI version v4.11.3 (c) 2017-2019 Symfony SAS
Symfony CLI helps developers manage projects, from local code to remote infrastructure
can you please help me to solve this problem?
I don't know about the symfony 4.11 version.
The last version maintained by symfony is the 4.4.
I think you should work on 4.4 version for more stability.
When you read docs, look at the version. Here there is no doc for symfony 4.11
So you're bundle will probably not work on your version.
On packagist you can see the bundle can work on 4.4 or 5 version.
https://packagist.org/packages/symfony/mailer
When I try to install Mink (using composer require --dev behat/mink) I get the message:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- behat/mink v1.7.1 requires symfony/css-selector ~2.1|~3.0 -> no matching package found.
- behat/mink v1.7.0 requires symfony/css-selector ~2.1 -> no matching package found.
- Installation request for behat/mink ^1.7 -> satisfiable by behat/mink[v1.7.0, v1.7.1].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.
- It's a private package and you forgot to add a custom repository to find it
Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Installation failed, reverting ./composer.json to its original content
What I found is that there is a conflict with symfony/css-selector.
If I run composer show symfony/css-selector the version shown is v4.2.1, so I think this is the problem.
Also, when I run composer why symfony/css-selector it returns:
symfony/test-pack v1.0.5 requires symfony/css-selector (*)
Is there any way of solving this conflict without removing the symfony/test-pack?
According to https://github.com/minkphp/Mink/pull/749#issuecomment-351402449, Mink has support for Symfony 4, but not released yet. You can using "behat/mink": "~1.7#dev" to install latest dev code for trial.
I am executing below command
composer require asm/php-ansible
I am getting below out put
- Can only install one of: symfony/process[v3.4.8, v4.1.0].
- Can only install one of: symfony/process[v3.4.9, v4.1.0].
- Installation request for symfony/process (locked at v4.1.0) -> satisfiable by symfony/process[v4.1.0].
I have checked my symfony/process version. It shows me v4.1.0.
The problem is that asm/php-ansible has old versions of symfony/process defined in it's dependencies: "~2.6|~3.0"
Please refer here:
https://github.com/maschmann/php-ansible/blob/master/composer.json#L16
You have two options now:
1) Create an issue (from here: https://github.com/maschmann/php-ansible/issues), raising the questing if it's possible that they update their symfony/process dependency to accept versions ~4.0 and wait for them to resolve it.
or
2) Downgrade the package which depends on symfony/process. I guess that's not a very good option. But if you decide to go that road, you should first check which package depends on this. You can do this via this command:
composer depends symfony/process
My guess is that it's the laravel/framework in your case.
I've just downloaded the latest laravel 5.3 and I'm trying to install passport, but I'm getting the following composer error:
Your requirements could not be resolved to an installable set of packages.
Problem 1
- laravel/passport v2.0.0 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
- laravel/passport v2.0.1 requires illuminate/http ~5.4 -> satisfiable by illuminate/http[v5.4.0].
- Conclusion: don't install illuminate/http v5.4.0
- Installation request for laravel/passport ^2.0 -> satisfiable by laravel/passport[v2.0.0, v2.0.1].
Installation failed, reverting ./composer.json to its original content.
Composer .json file
http://pastebin.com/ne4RkL96
It happens, because after releasing Laravel 5.4, this package also had been updated to v 2.0 and requires Laravel 5.4. But you are using Laravel 5.3. Try to install earlier version:
composer require laravel/passport ^v1
Also, you can learn about the versions of this package here:
Laravel Passport
For Laravel 5.3.
In your composer.json file put "laravel/passport": "~1.0" and run "composer update" command.
In line with Rashad's answer as it helped me out, you need a version of passport less than major version 2. This can be accomplished with several version strings ^v1, v1.x, >= 1 < 2 and several other combinations.
I used this: php composer.phar require laravel/passport ^v1 and it worked awesomely.
Install laravel passport version 7:
> composer require laravel/passport:7.5.1
I'm just want to install themosis to start new project and i have some problem during installation.
composer create-project themosis/themosis myProject
and the installation fails because obviously missing a package symfony.
Installing themosis/themosis (1.2.3)
- Installing themosis/themosis (1.2.3)
Loading from cache
Created project in myProject
Loading composer repositories with package information
Warning: Accessing wpackagist.org over http which is an insecure protocol.
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- themosis/framework 1.2.3 requires symfony/http-foundation 2.4.2 -> no matching package found.
- themosis/framework 1.2.2 requires symfony/http-foundation 2.4.2 -> no matching package found.
- themosis/framework 1.2.1 requires symfony/http-foundation 2.4.2 -> no matching package found.
- themosis/framework 1.2.0 requires symfony/http-foundation 2.4.2 -> no matching package found.
- Installation request for themosis/framework 1.2.* -> satisfiable by themosis/framework[1.2.0, 1.2.1, 1.2.2, 1.2.3].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
see for more details.
Read for further common problems.
I 'm new to this framework and have already done tests and everything worked on my local machine .
Would you have a solution to continue the install of themosis
Thanks for your help.
I was bug on packagist. Now it's fixed. Go try it!