45 Commits

Author SHA1 Message Date
Nicolas Grekas 6f5f9d2b9c CS fixes 2025-08-04 10:00:56 +02:00
Christian Flothmann 7374a4ad29 Merge branch '7.3' into 7.4
* 7.3:
  Use unique identifier for RequestContextProvider
  [Validator] Add Japanese translation for Twig template validator
  fix doc url
  [FrameworkBundle] Fix `lint:container --resolve-env-vars`
2025-07-29 22:18:49 +02:00
matlec 648262de40 [FrameworkBundle] Fix lint:container --resolve-env-vars 2025-07-29 11:55:18 +02:00
Santiago San Martin c8c2b51f26 [FrameworkBundle] Minor remove unused Container use statement in ContainerLintCommand 2025-06-29 15:07:21 -03:00
Santiago San Martin daee95f2ef [FrameworkBundle] fix lint:container command 2025-06-28 21:30:10 -03: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
Gabriel Ostrolucký 328ef30909 [FrameworkBundle] Add --resolve-env-vars option to lint:container command 2024-09-16 17:32:05 +02:00
Alexander M. Turek 4875a8487f Prefix all sprintf() calls 2024-06-20 17:52:34 +02:00
Nicolas Valverde e16613811d [DependencyInjection] Add CheckAliasValidityPass to check interface compatibility 2024-02-06 18:51:34 +01:00
MatTheCat d3eda6753d [FrameworkBundle] Run the ResolveFactoryClassPass when lint:container builds the container from a dump 2023-07-15 19:32:22 +02:00
Nicolas Grekas ac90b6babe Consistently use var $container to reference the container builder+configurator 2023-05-10 11:01:24 +02:00
Nicolas Grekas 2c8b90840c [DependencyInjection] Fix dumping/loading errored definitions in XML/Yaml 2023-05-08 11:07:20 +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
Wouter de Jong 34bd487d2e Add void return types 2023-02-13 14:18:23 +01:00
François-Xavier de Guillebon ba9af66064 Replace get_class() calls by ::class 2022-09-01 04:03:18 +02:00
Grégoire Pineau fb7ade8fab [CS] Remove @inheritdoc PHPDoc 2022-08-25 17:27:04 +02:00
Fabien Potencier 442eeac695 Merge branch '6.0' into 6.1
* 6.0:
  Fix colors for 4.4
  Stand with Ukraine
  [Runtime] Fix passing $debug parameter to `ErrorHandler`
  [FrameworkBundle] Ensure container is reset between tests
  [HttpKernel] fix using Target with controller args
  reflect Cache component version dependent default value in test
  Remove blocking test for adding support for placeholders in EmumNode in 6.1
  [FrameworkBundle] Fix compiler passes processing a container twice when it's loaded from the debug dump
  [HttpKernel] Fix advertizing deprecations for *TestSessionListener
2022-03-08 16:44:06 +01:00
Fabien Potencier 12d5b3b922 Merge branch '5.4' into 6.0
* 5.4:
  Fix colors for 4.4
  Stand with Ukraine
  [Runtime] Fix passing $debug parameter to `ErrorHandler`
  [FrameworkBundle] Ensure container is reset between tests
  [HttpKernel] fix using Target with controller args
  Remove blocking test for adding support for placeholders in EmumNode in 6.1
  [FrameworkBundle] Fix compiler passes processing a container twice when it's loaded from the debug dump
  [HttpKernel] Fix advertizing deprecations for *TestSessionListener
2022-03-08 16:43:52 +01: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 2f3f5384cd Bump minimum version of PHP to 8.1 2022-02-25 12:15:52 +01:00
Fabien Potencier dd3bf10773 Revert "bug #44494 Remove FQCN type hints on properties (fabpot)"
This reverts commit 0a13eba7037c6636be7a35c194d7d2e86d6ea6ba, reversing
changes made to e4cfa82c31ffda491b73e181c8d3d4e0a307eee8.
2021-12-09 13:46:12 +01:00
Fabien Potencier a871a08baa Remove FQCN type hints on properties 2021-12-08 16:13:44 +01:00
Alexander M. Turek a258c31122 Merge branch '5.4' into 6.0
* 5.4:
  Fix TranslationTrait for multiple domains
  Fix parameter types for ProcessHelper::mustRun()
  Fix: Wording
  [SecurityBundle] Fix ambiguous deprecation message on missing provider
  Remove dead code in tests
  Remove return void PHPDoc in test
  Fix merge
2021-12-05 21:36:47 +01:00
Andreas Möller 8cf4586e2e Fix: Wording 2021-12-05 16:02:40 +01:00
Alexander M. Turek bf9d0d4969 [FrameworkBundle] Add types to private properties 2021-11-02 11:55:16 +01:00
Nicolas Grekas 54788c67a5 Use #[AsCommand] to describe commands 2021-09-30 17:28:07 +02:00
Nicolas Grekas 4a8f8840cc Merge branch '5.2' into 5.3
* 5.2:
  Leverage str_contains/str_starts_with
  Leverage str_ends_with
2021-07-21 14:40:44 +02:00
Nicolas Grekas 276a57b3c9 Merge branch '4.4' into 5.2
* 4.4:
  Leverage str_contains/str_starts_with
  Leverage str_ends_with
2021-07-21 14:38:00 +02:00
Alexander M. Turek d6e4f596a5 Leverage str_contains/str_starts_with
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-07-21 14:19:41 +02:00
Fabien Potencier 3f8b570669 Merge branch '5.2' into 5.x
* 5.2:
  Fix #36973: Command description consistency
  Render email once
2021-03-06 09:05:19 +01:00
Fabien Potencier a26f088761 Merge branch '4.4' into 5.2
* 4.4:
  Fix #36973: Command description consistency
  Render email once
2021-03-06 08:59:01 +01:00
Dane Powell 1d7c9a5590 Fix #36973: Command description consistency 2021-03-05 09:58:50 -08:00
Nicolas Grekas a2ab2c0854 [Console] enable describing commands in ways that make the list command lazy 2021-01-20 12:45:16 +01:00
Nicolas Grekas bb35af82f3 Leverage PHP8's get_debug_type() 2020-03-16 17:46:21 +01:00
Fabien Potencier d37b15b531 feature #34865 [FrameworkBundle][ContainerLintCommand] Style messages (fancyweb)
This PR was merged into the 5.1-dev branch.

Discussion
----------

[FrameworkBundle][ContainerLintCommand] Style messages

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | yes
| Deprecations? | no
| Tickets       | -
| License       | MIT
| Doc PR        | -

It gives a better feedback.

Commits
-------

93aa5bcd0a [FrameworkBundle][ContainerLintCommand] Style messages
2020-01-10 09:17:37 +01:00
Thomas Calvet d4d1b2dc94 [FrameworkBundle][ContainerLintCommand] Only skip .errored. services 2020-01-07 17:40:07 +01:00
Thomas Calvet 4ce19bc4ca [FrameworkBundle][ContainerLintCommand] Style messages 2020-01-02 12:33:20 +01:00
Thomas Calvet bd143d565a [FrameworkBundle][ContainerLintCommand] Improve messages when the kernel or the container is not supported 2019-12-15 18:41:51 +01:00
Thomas Calvet 46398b476a [FrameworkBundle][DependencyInjection] Skip removed ids in the lint container command and its associated pass 2019-12-13 13:18:52 +01:00
Thomas Calvet 5dc07e47ea [FrameworkBundle][ContainerLintCommand] Reinitialize bundles when the container is reprepared 2019-12-06 20:06:44 +01:00
Thomas Calvet e7e8b05036 [FrameworkBundle] Set the parameter bag as resolved in ContainerLintCommand 2019-12-03 14:44:43 +01:00
Thomas Calvet e9c72120a4 [FrameworkBundle][ContainerLint] Keep removing compiler passes 2019-11-21 23:20:32 +01:00
Nicolas Grekas d6b681638c Make it really work on real apps 2019-10-13 15:20:26 +02:00
Guilhem Niot 2c7bf8ca6f Fix comments, improve the feature 2019-10-12 12:35:35 +02:00
Julien Maulny f2d2532177 [DI] Add compiler pass to check arguments type hint 2019-10-12 11:48:25 +02:00