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

Should I use Symfony Flex on production codebase?

I am writing Dockerfile for my new PHP application using Symfony 5 with Flex. One of the build commands I run is follows: RUN composer dump-env prod It gives me error: [Symfony\Component\Console\Exception\CommandNotFoundException] Command…
Spartak
  • 343
  • 1
  • 10
2
votes
0 answers

Symfony 4 NelmioApiDocBundle security headers not set

I'm using Symfony 4 and the NelmioApiDocBundle for an API. I have the bundle setup and working but I'm trying to require an apiKey header in all endpoints by default. I've followed the documentation but I cannot see a header of TEST-KEY when I run…
Dan
  • 11,914
  • 14
  • 49
  • 112
2
votes
1 answer

symfony simple-phpunit error 'You have requested a non-existent service "test.client"' only in deployment script

PHP: 7.2.7 SYMFONY: 3.4.12 PHPUNIT-BRIDGE: 4.1.1 (phpunit 6.5.8) I have a deployment script written in PHP that runs as the root user and, since upgrading to php 7.2 from 7.0 and updating my code accordingly, it has begun failing inexplicably when…
94638857
  • 111
  • 9
2
votes
2 answers

Symfony Flex behind strict corporate firewall / proxy

The company where I'm currently working has a very strict security policy and Composer is not allowed to access any host outside the company intranet. Each developer gets it's own VPS for development within the internal cloud that has php, composer…
Tez
  • 133
  • 1
  • 1
  • 8
2
votes
1 answer

How to upgrade a Symfony 3 bundled application to a Symfony 4 bundle-less one?

At the section Upgrading Existing Applications to Flex, the Symfony 4 documentation states: Move the original source code from src/{App,...}Bundle/ to src/ and update the namespaces of every PHP file to be App\... (advanced IDEs can do this…
Kwadz
  • 2,206
  • 2
  • 24
  • 45
2
votes
1 answer

Symfony 4 front controller

Symfony 4 resigns on app.php and app_dev.php front controllers. Now it will be only one index.php. We can manipulate dev and prod environment in .env file. Please tell me is it only one way to change environment? I can't do that from the browser (as…
Persei
  • 509
  • 1
  • 5
  • 12
2
votes
2 answers

How to provide namespace of Kernel to Codeception for a Symfony4 project

I'm testing Symfony4 new directory structure with Coception. Codeception is installed and configured. Because of the end of bundle strategy, I known that an error will occured and here is the error: PHP Fatal error: Uncaught Error: Class 'Kernel'…
Alexandre Tranchant
  • 4,426
  • 4
  • 43
  • 70
2
votes
2 answers

Composer load single class with namespace

I'm trying to use symfony flex with a bundle. I have this directory structure / src/ AppBundle/ AppBundle.php # Many classes Kernel.php I want to load Kernel.php class with this namespace App and classes inside AppBundle…
anacona16
  • 41
  • 1
  • 7
1
vote
1 answer

On my private Symfony Flex recipe, files are not copied from the recipe when installing the bundle

I'm currently in the process of releasing a Symfony bundle for a very small amount of people. This is the reason why I don't think will one day land on https://github.com/symfony/recipes-contrib, so I used the Flex Private Recipe documentation. I…
Quentin
  • 183
  • 1
  • 15
1
vote
1 answer

Symfony 5 custom reusable bundle installation using flex - how to test and run a private recipe server

I have created a test reusable Symfony 5 bundle and have written a Flex recipe to automatically install and configure it within any project which is private. My problem is, I have no idea how to run and test this. I cannot find any clear complete…
LeeTee
  • 6,401
  • 16
  • 79
  • 139
1
vote
1 answer

Composer install suddenly fails because of symfony/flex

I'm having this problem out of the blue. I didn't change anything in composer and it ran just fine up until last week. Now when I run composer install I get this at the end: Generating autoload files ocramius/package-versions: Generating version…
Beckeli
  • 11
  • 1
  • 6
1
vote
1 answer

Upgrade to Symfony flex (3.4) - Problems when there are many bundles

I have an application with symfony 3.4, and I am updating it to flex and then going to version 4. The problem is that i have many bundles, and in FLEX they do not work with these ... so I am looking for a way to maintain my bundles ... This is what…
1
vote
1 answer

How to upgrade my Symfony applications while using flex?

I found a Symfony component I would like to use in my project but it is only available since the version 5.2 and all my Symfony elements are currently in version 5.1.10. I read the following links : How to upgrade your Symfony project (but not a…
Bpicco
  • 65
  • 5
1
vote
0 answers

My bundle is not automatically registered

I created a independant bundle following the symfony tutorial but since I moved my bundle out of my app nothing work anymore. going step by step I realized that flex doesn't auto-register my bundle into my project. Normally it should be automati as…
Pierrick Rambaud
  • 1,726
  • 1
  • 20
  • 47
1
vote
1 answer

Why isn't bin/console script found nor recreated in "bin" after composer install?

I changed my composer.json and suddenly, when I do rm -rf vendor/* && rm -rf bin/* && composer update I get error messages at the end of the process, because the Symfony console isn't found in the folder bin. When I manually copy it there from…
Calamity Jane
  • 2,189
  • 5
  • 36
  • 68