|
Hi there, I have a question about the auto-generated This file is automatically regenerated every time I run php bin/console cache:clear What's the goal of this file ? |
Replies: 5 comments 8 replies
|
This file provides array-shape type for the PHP configuration. It should be committed with your code and might change when you update the composer dependencies. See: https://symfony.com/blog/new-in-symfony-7-4-better-php-configuration
|
|
Does this file work fine in a shared kernel multi app? Since we have 5 APP_ID's. We experience bootstrapping issues when switchings apps. |
|
Can it be generated only on composer update instead of cache clearing. |
|
Just adding my vote for "this should be configurable and improved". |
|
Following approach seems to be working for me in multi-kernel configuration: class Kernel extends BaseKernel
{
use MicroKernelTrait { getConfigDir as getSharedConfigDir; }
public function __construct(string $environment, bool $debug, public readonly string $id)
{
parent::__construct($environment, $debug);
}
public function getConfigDir(): string
{
return $this->getProjectDir().'/apps/'.$this->id.'/config';
}
// ...
}It generates |
This file provides array-shape type for the PHP configuration. It should be committed with your code and might change when you update the composer dependencies.
See: https://symfony.com/blog/new-in-symfony-7-4-better-php-configuration