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.
Questions tagged [symfony-flex]
87 questions
0
votes
2 answers
How to generate document with Symfony 3.4 using Symfony flex
With Symfony flex, one of the change is that there is no default bundle when using the symfony/skeleton.
I don't find a way to use the command doctrine:mongodb:generate:documents in this context.
Could you please tell me how to use it ?
Exemple:
php…

user1041440
- 191
- 1
- 7
0
votes
1 answer
Styles don't apply from Single File Component
I use Symfony4 (flex) with Webpack-encore and VueJs. I created a Single File Component (ingredient-search.vue) :
0
votes
1 answer
symfony flex composer InvalidArgumentException
So I downloaded symfony 4 with help of this command
composer create-project symfony/skeleton my-project
Afterwards, from the project's directory I try to pull the symfony's flex profiler package using command
composer require profiler --dev
but…

h0lend3r
- 431
- 1
- 5
- 11
0
votes
1 answer
Unable to generate an IRI for the item of type
I am actually building an API based on:
symfony/flex: v1.0.61
symfony: v4.0.3
api-platform/api-pack: v1.0.1
api-platform/core: v2.1.4
The CRUD operations were easy to implement. Nevertheless, the
custom operation does not seem to be…

Amine Jallouli
- 3,919
- 8
- 36
- 73
0
votes
0 answers
Expected argument of type "App\Entity\void", "string" given
For my application with Symfony 3.4 (with Symfony Flex) I want a registration system.
My system is very simple, I've a form with 3 fields.
use App\Entity\User;
use Symfony\Component\Form\AbstractType;
use…

Arzaor
- 11
- 2
0
votes
3 answers
Can't install profiler symfony flex
I'm unable to use the symfony profiler after running composer req profiler
I'm using symfony/skeleton in version 4.0 beta, but i remember having the same problem when i tested it a few months ago in 3.3.
The toolbar isn't working, message here :
An…

Artandor
- 472
- 6
- 20
0
votes
2 answers
Symfony Flex: Override FOSUser login form
I read up on two ways to override the FOSUser login form:
place template file in app/Resources/ Docs
override the Controller in a child Bundle Docs
However, with Symfony Flex the project structure changed substantially.
As for option #1: There is…

Chrisissorry
- 1,434
- 2
- 22
- 43
0
votes
1 answer
How to load routes declared in dev subdirectory? (in dev environment)
I'm testing Symfony with Flex. I have a very small application which is working fine (the lucky number generator). I want to add the web_profiler via Flex.
I launch this command:
composer require web_profiler --dev
It works fine, cache is…

Alexandre Tranchant
- 4,426
- 4
- 43
- 70
0
votes
1 answer
api recipe can't be installed due to minimum-stability
I would like to use api-platform/api-platform in my flex-enabled symfony application. To do so, I run the following commands:
# creation of the flex-enable symfony application
composer create-project symfony/skeleton:3.3.* sf-flex
# installation of…

Amine Jallouli
- 3,919
- 8
- 36
- 73
-1
votes
2 answers
How to update individual packages of the orm-pack, when the pack is installed instead of the individual doctrine dependencies?
In a Symfony 5.3 application I'm using the orm-pack and when checking the outdated dependencies with composer outdated I see that doctrine/dbal has a new version but I can not upgrade it because it's defined in the ORM Pack.
$ > composer outdated…

petekaner
- 8,071
- 5
- 29
- 52
-1
votes
2 answers
Upgrading Symfony 3.4 to 4.x with Flex - Composer Problems
I have a Symfony 3.4 project I'm trying to upgrade to 4.x with Flex but I'm falling at the first hurdle.
With the output of Composer this verbose I assume the answer is staring me straight in the face, but I'm not seeing it. What do I need to do?…

BT643
- 3,495
- 5
- 34
- 55
-1
votes
1 answer
How do Symfony Flex recipes know what packages to install?
I am trying to understand how Symfony recipes know what packages to install along the way.
Reading the source code, it seems to me that when I run
composer require twig
the composer, having flex as a plugin,
looks for an alias called twig
sees…

fridde
- 472
- 1
- 5
- 17