Questions tagged [symfony-flex]

Symfony Flex is a Composer plugin that helps developers install and manage Symfony applications, from the most simple micro-style projects to the more complex ones with dozens of dependencies. It replaces and improves the Symfony Installer and the Symfony Standard Edition, automating the most common tasks of Symfony applications, like installing and removing bundles and other Composer dependencies. Flex works for Symfony 3.3 and higher.

87 questions
1
vote
1 answer

How to update symfony with flex?

I think my question may be stupid, but I can’t figure out how to upgrade my Symfony project from version 4.1. * to version 4.3. *. I tried to touch the composer.json. But it sends me an error message... Does anyone have the solution? composer.json…
Jboucly
  • 720
  • 6
  • 17
1
vote
0 answers

symfony flex with private recipes

What's the proper way to setup a flex recipe (private or public repository) for a package (private repository)? What I tried so far Got a private repository on bitbucket with a package. Got a private repository on github with recipes. Configured…
Leggy7
  • 483
  • 9
  • 23
1
vote
1 answer

Symfony Guard login never authenticates

I'm using guard as my authentication layer for my symfony 4 flex app. whenever I enter in my username and password it automatically redirects me to the login page, no errors just redirects me. In my logs it shows that I couldn't log in but the form…
Eman
  • 1,093
  • 2
  • 26
  • 49
1
vote
0 answers

Symfony 4 Parse Error: vendor/symfony/flex/src/Flex.php line 275

I am currently using Symfony 4 and while I am trying to create a user login form for my app, I use the command Composer require security and I get this error: Parse error: parse error in…
1
vote
1 answer

new symfony flex what is parameters.yml solution

I start move to Symfony Flex structure, but cannot find more informations about parameters.yml and parameters.yml.dist - its removed ? how now create bundles with on install ask abount configuration details like we have in older versions ?
Developer
  • 2,731
  • 2
  • 41
  • 71
1
vote
1 answer

Symfony 4 installation with composer error mkdir(): No such file or directory

when i do composer create-project symfony/skeleton project I have this error on Windows : [ErrorException] mkdir(): No such file or directory. php version : 7.1.9 composer version : 1.6.2 Do you have any idea on this error ?
1
vote
0 answers

Unrecognized field with Symfony 3.4 and flex

I just started a new Symfony 3.4 project with Flex. I followed the official documentation of FOSOAuthBundle but when I want to create a token /oauth/v2/token I have this error:" Unrecognized field: randomId " Here are my configuration…
Khalezis
  • 109
  • 1
  • 1
  • 6
1
vote
1 answer

Symfony: How to correctly switch from phpunit/phpunit to phpunit bridge

Using Symfony 4, I have recently come across the message "Adding phpunit/phpunit as a dependency is discouraged." which seems to have been added in this PR. The message says to "Run php bin/phpunit" which then seems to download PHPUnit to the bin/…
Votemike
  • 762
  • 1
  • 10
  • 28
1
vote
0 answers

How to use autowire in symfony flex application?

with symfony 3.4 i am able to use autowire in my application but when i am using same services.php in symfony flex application its giving me error as Cannot autowire service "Services\xxx": argument "$key" of method "__construct()" must have a…
1
vote
2 answers

Symfony Flex - Doctrine generate entity and entities runtime exception

I am testing the new Symfony 4 schema with Flex and I'm having a big trouble while creating a Doctrine Entity or creating the Entity Entities. In previous versions of Symfony, you can create the entities with the command: php bin/console…
Mike
  • 11
  • 2
0
votes
1 answer

Updating symfony/flex fails

When I ran 'composer install' (with --ignore-platform-reqs) I met with the error In ParallelDownloader.php line 212: Declaration of Symfony\Flex\ParallelDownloader::getRemoteContents($originUrl, $fileUrl, $context) should be compatible with…
phperson
  • 21
  • 7
0
votes
0 answers

Symfony/mailer in composer.json / composer.lock where to see version?

After installing symfony/mailer I got an entry like this in composer.json require: { "symfony/mailer": "*", ... } only occurrence in composer.lock is here: "replace": { "symfony/mailer": "self.version", ... } no, there…
Toskan
  • 13,911
  • 14
  • 95
  • 185
0
votes
1 answer

Shopware 6.5 - update from 6.4 using symfony flex

I have installed Shopware 6.4.20.0 in my local dev environment using Shopware's new symfony-flex template. Now I want to update my local version to Shopware 6.5. What is the best way to update my local installation to 6.5, from the commandline and…
Geert
  • 177
  • 7
0
votes
1 answer

Symfony 6.2 does not reach token handler on token authentication

Symfony 6.2 does not reach custom token handler while executing a request if token_extractors equals to header in the security.yml. Here is the security.yml security: password_hashers: …
Vladimir
  • 229
  • 2
  • 16
0
votes
1 answer

InvalidArgumentException when trying to install a symfony flex package

I just installed symfony and symfony flex via composer require symfony/flex but symfony flex aliases don't work. For example, when I try to install twig by doing composer require twig, I receive this answer : Info from https://repo.packagist.org:…