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
0
votes
1 answer

MappingException - The class 'generalBundle\Entity\xxx' was not found in the chain configured namespaces xxx - Upgrade to symfony flex

I have a project in Symfony 3.4 and I am configuring flex, to later go to version 4.4. I have already managed to modify the project folder structure, and it is trying to map, but the problem is that with the old configuration it does not work. These…
0
votes
2 answers

Symfony recipes doesn't apply when installing custom bundle

I'm trying to create a re-usable custom bundle following the great course on SymfonyCasts. But when I try to install it with composer, the symfony recipes doesn't apply. For example, my bundle isn't registered at all in config/bundles.php. I read…
0
votes
0 answers

how can I install one newer symfony package with flex

I want to have an app in symfony 3.4, but to have symfony/dotenv in v4. The dotenv package in version 4.4.8 supports symfony/process 3.4. But when I run composer update, it fails and only lists 3.4.* as candidate versions. This is probably…
simohe
  • 613
  • 7
  • 20
0
votes
1 answer

Can we dispatch an event from Rabbitmq Consumer in Symfony 4.3?

I'm trying to dispatch a custom event from the Rabbitmq Consumer. This process used to work on Symfony 3.4, recently upgraded the project to Symfony Flex(4.3). DatasetSubmissionConsumer.php use…
0
votes
1 answer

PHP 7.3.7: Seld\JsonLint\ParsingException: "[..] does not contain valid JSON" while installing symfony/flex behind a Proxy

I'm trying to create a new Symfony project using composer create-project symfony/website-skeleton, but I'm encountering a pretty cryptic error while doing so: [Seld\JsonLint\ParsingException] …
Saphir
  • 618
  • 5
  • 11
0
votes
1 answer

Why does Symfony Flex adds own "dev-develop" bundles to root level in composer.json?

I've got a big Symfony project and started to outsource code to standalone bundles. This works like charm. But I've realized that the composer.json contains "weird" infos on root level, after performing a composer update: This is why what I'm asking…
Armin
  • 15,582
  • 10
  • 47
  • 64
0
votes
2 answers

Created new Symfony 3.4 project using Flex - Is this really Symfony 3.4?

The question: Is a Symfony 3.4 project created with the Flex installer really Symfony 3.4? Or more a "Symfony 4 project with 3.4 core files? The complete story: I am working on migrating an existing Symfony 2.8 project to Symfony 3.4. At first I…
Andrei Herford
  • 17,570
  • 19
  • 91
  • 225
0
votes
1 answer

sonata user-bundle symfony 3.4 problem installation with Flex

I have a problem with the installation of sonata-project/user-bundle on a Symfony 3.4 project using Symfony Flex. After the installation, during the execution of the script cache:clear, this one returned KO and the message is: The child node…
remi0291
  • 13
  • 2
  • 5
0
votes
1 answer

How to change bundles.php file name in symfony Flex?

I want to change the name of bundle.php file, and configure flex to add bundles to my new file while executing composer req. is there a way to do that ?
0
votes
2 answers

Cannot redirect to route despite having defined the routes in my controller [Symfony]

My problem is that whenever I try to use the "redirectToRoute" method inside my controller it never finds the route "/group-b" despite both routes being defined inside the controller. This is the error I receive: Unable to generate a URL for the…
StevenG1
  • 55
  • 1
  • 9
0
votes
0 answers

Impossible connexion to admin panel with Symfony 4 / Security

I'm pretty new to Symfony 4 and it is mostly the first time I ever use something to handle connexion to an admin panel, or either yaml file to set parameters. As recommended in the documentation, I'm using Security recipe. As the whole site was…
Zyigh
  • 425
  • 4
  • 16
0
votes
1 answer

API Platform related entities on resource creation

Is there a way of passing array of ids of already created related entities on entity creation resource? The default docs say about creating everything on post request. Some data. I have Squad entity: /** *…
0
votes
1 answer

Test and Dev Enviroment on same machine in Symfony Flex / Symfony 4

Can I put my databse configuration in a configuration file in config/packages/test/ somehow? I want to run my tests on my development PC and do the dev work in parallel. In Symfony 3 I had 2 configurations files config_test.yaml and…
Sebastian Viereck
  • 5,455
  • 53
  • 53
0
votes
1 answer

Install doctrine-mongodb-admin-bundle::error:To enable extensions, verify that they are enabled in your .ini files:

I am using Symfony 3.4 Flex and sonata-admin-bundle": "^3.33" & "php": "^7.0.8"...i want to installing doctrine-mongodb-admin-bundle.when i run php composer.phar require sonata-project/doctrine-mongodb-admin-bundle 3.*@dev I have this error…
0
votes
1 answer

Symfony Flex configuration for KnpLabs/DoctrineBehaviors

I would like to configure knp_doctrine_behaviors for knplabs/doctrine-behaviors like this: knp_doctrine_behaviors: translatable: true but Symfony (flex) give me error: [FileLoaderLoadException] There is no extension able to load the…
Shaddow
  • 3,175
  • 3
  • 22
  • 42