15 Commits

Author SHA1 Message Date
Nicolas Grekas
52fc4dea53 Merge branch '7.4' into 8.0
* 7.4: (21 commits)
  [SecurityBundle] Fix tests with Symfony 7.4
  [DependencyInjection] Ensure deprecation detection does not trigger a PHP error
  [DependencyInjection][FrameworkBundle] fix BC break when dumping container for build/lint commands
  [Form] Clean up wrong method docblocks in data transformers
  Fix merge
  [DependencyInjection] Throw when using `$this` or its internal scope from PHP config files; use the `$loader` variable instead
  [HttpClient] Fix sharing CurlClientState between clones of CurlHttpClient instances
  [FrameworkBundle] Don't exclude classes with constraint/serialization attributes from being registered as services
  Revert "[HttpClient] Lazily initialize CurlClientState"
  [Yaml] Fix regression handling blank lines in unquoted scalars
  [Cache] Fix NullAdapter must set taggable
  [FrameworkBundle] Order alphabetically known tags of `UnusedTagsPass`
  allow the installation of MercureBundle 0.4
  [Console] don't discard existing aliases when constructing Command
  Import all node definition classes to DefinitionConfigurator
  Fix the creation of a redis connection with only ext-relay
  [FrameworkBundle] Dump bundles config reference first
  [DependencyInjection] Don't add the .container.known_envs parameter when empty
  [DependencyInjection] Reset resolved state when setting a parameter
  [HttpKernel] Don't reset services between fragments redering when using in HttpCache
  ...
2025-12-04 19:17:06 +01:00
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
1e0e68beee [DependencyInjection][Routing] Remove support for the XML configuration format 2025-10-02 17:17:48 +02: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