13 Commits

Author SHA1 Message Date
Andreas Schempp
7c12bc603d [DependencyInjection][FrameworkBundle] fix BC break when dumping container for build/lint commands 2025-12-04 18:16:50 +01:00
Nicolas Grekas
0ecd22828d [DependencyInjection][FrameworkBundle] Use php-serialize to dump the container for debug/lint commands 2025-06-02 10:57:41 +02:00
Wouter de Jong
230c79ae9f [Components] Convert to native return types 2023-07-05 15:06:06 +02:00
Nicolas Grekas
2aef04c785 Merge branch '6.2' into 6.3
* 6.2:
  [FrameworkBundle] Fix `debug:config` & `config:dump` in debug mode
2023-06-08 22:47:08 +02:00
Nicolas Grekas
ac7a253215 Merge branch '5.4' into 6.2
* 5.4:
  [FrameworkBundle] Fix `debug:config` & `config:dump` in debug mode
2023-06-08 22:44:26 +02:00
HypeMC
9631b45b32 [FrameworkBundle] Fix debug:config & config:dump in debug mode 2023-06-06 12:42:26 +02:00
Nicolas Grekas
ac90b6babe Consistently use var $container to reference the container builder+configurator 2023-05-10 11:01:24 +02:00
Ruud Kamphuis
39bde6f266 Allow disabling dumping of container to XML
In debug mode, when the container is compiled, an XML file is automatically generated. This file
is used by various commands like:
- `debug:container`
- `lint:container`
- `config:dump-reference`
- `debug:autowiring`
- `debug:router`

But generating this file comes with a price. When your container grows, the XML file grows, and the
time to compile this file increases.

In our large application this file became 20MB and took 2 seconds to generate every time the cache
needed to be recompiled. For us, the benefit of this file does not outweigh the decrease in
performance.

Therefore I'd like to disable this dumping and accept the consequences for less debug possibilities.

To disable this, one can set the `debug.container.dump` parameter to `false`.
2023-02-22 10:40:09 +01:00
François-Xavier de Guillebon
ba9af66064 Replace get_class() calls by ::class 2022-09-01 04:03:18 +02:00
Gabrielle Langer
49298d5dc1 [FrameworkBundle] Fix compiler passes processing a container twice when it's loaded from the debug dump 2022-03-04 18:48:38 +01:00
Nicolas Grekas
b8436a3daa [FrameworkBundle] fix creating ContainerBuilder at warmup/CLI time 2021-05-31 10:58:48 +02:00
Nyholm
0700ad9e52 [FrameworkBundle] Add argument KernelInterface to BuildDebugContainerTrait::getContainerBuilder() 2021-04-14 10:59:53 +02:00
Robin Chalas
012397dc61 [FrameworkBundle] Add file links to named controllers in debug:router 2020-04-01 17:47:21 +02:00