43 Commits

Author SHA1 Message Date
Nicolas Grekas
1810cac33f [DoctrineBridge] Deprecate auto-mapping of entities in favor of mapped route parameters 2024-05-02 11:05:39 +02:00
Nicolas Grekas
ab69bdd211 Merge branch '5.4' into 6.3
* 5.4:
  Fix implicitly-required parameters
  List CS fix in .git-blame-ignore-revs
  Apply php-cs-fixer fix --rules nullable_type_declaration_for_default_null_value
  [Messenger][AmazonSqs] Allow async-aws/sqs version 2
2024-01-23 15:35:58 +01:00
Nicolas Grekas
4fa5825b71 Fix getting the name of closures on PHP 8.1.11+ 2022-12-12 16:54:21 +01:00
Nicolas Grekas
9abc061d32 [HttpKernel] Don't cache controller's reflector inside the request 2022-09-02 16:20:57 +02:00
Grégoire Pineau
3b05051d9e [CS] Remove @inheritdoc PHPDoc 2022-08-25 17:27:04 +02:00
Nicolas Grekas
af68c28c75 [HttpKernel] Add #[Cache] to describe the default HTTP cache headers on controllers 2022-07-12 15:52:22 +02:00
Nicolas Grekas
7b67334f10 [HttpKernel] Add ControllerEvent::getAttributes() to handle attributes on controllers 2022-07-07 11:50:37 +02:00
Nicolas Grekas
06341a695b Merge branch '5.4' into 6.0
* 5.4:
  [Messenger] Fix dealing with unexpected payload in Redis transport
  [Filesystem] Update some PHPDoc of the Path class
  [VarDumper] Fix dumping mysqli_driver instances
  Fix missing ReturnTypeWillChange attributes
  [Cache] Add missing log when saving namespace
  [HttpKernel] Reset services between requests performed by KernelBrowser
  [HttpKernel] Remove unused argument in ArgumentMetadataFactory
  [Stopwatch] Fix test expectation
  [SecurityBundle] fix autoconfiguring Monolog's ProcessorInterface
  KernelTestCase resets internal state on tearDown
  [Security/Http] Fix getting password-upgrader when user-loader is a closure
  [HttpKernel] Fix extracting controller name from closures
  [Intl] fix wrong offset timezone PHP 8.1
  Fix type binding
  Remove duplicated test
  [Dotenv] Fix reading config for symfony/runtime when running dump command
  [Serializer] Remove unnecessary break
  [Runtime] Fix dotenv_overload with commands
  Make document type nodes ignorable
  Initialize Symfony\Component\Security\Core\Exception\AccountStatusException:: property
2022-02-21 18:15:17 +01:00
Nicolas Grekas
9c92c00f8c Merge branch '4.4' into 5.4
* 4.4:
  [VarDumper] Fix dumping mysqli_driver instances
  Fix missing ReturnTypeWillChange attributes
  [Cache] Add missing log when saving namespace
  [HttpKernel] Reset services between requests performed by KernelBrowser
  [HttpKernel] Remove unused argument in ArgumentMetadataFactory
2022-02-21 16:00:19 +01:00
Thomas Calvet
56a3290ab7 [HttpKernel] Remove unused argument in ArgumentMetadataFactory 2022-02-18 17:12:55 +01:00
Nicolas Grekas
bf0d4062b8 Merge branch '4.4' into 5.4
* 4.4:
  [Stopwatch] Fix test expectation
  [SecurityBundle] fix autoconfiguring Monolog's ProcessorInterface
  KernelTestCase resets internal state on tearDown
  [HttpKernel] Fix extracting controller name from closures
  [Intl] fix wrong offset timezone PHP 8.1
  Fix type binding
  Remove duplicated test
  Make document type nodes ignorable
  Initialize Symfony\Component\Security\Core\Exception\AccountStatusException:: property
2022-02-18 17:06:09 +01:00
Nicolas Grekas
ca69a18d9a [HttpKernel] Fix extracting controller name from closures 2022-02-17 21:14:02 +01:00
Nicolas Grekas
574d651f55 Add union types 2021-06-29 11:21:24 +02:00
Alexander M. Turek
a5e69924ac Merge branch '5.4' into 6.0
* 5.4:
  fixes issue #41478 by resetting the $attributes array per controller argument
  [Security] Fix setUsername() deprecation message
  Add conflict with property-info < 5.3
  Fix Symfony 5.3 end of maintenance date
  Bump Symfony version to 5.3.1
  Update VERSION for 5.3.0
  Update CHANGELOG for 5.3.0
  [FrameworkBundle] fix ConfigBuilderCacheWarmer
  [FrameworkBundle] fix creating ContainerBuilder at warmup/CLI time
  [Framework] Remove redundant cache service
  Remove PoEditor Provider
2021-06-01 20:03:39 +02:00
Stefan Gehrig
f7a40b1fa2 fixes issue #41478 by resetting the $attributes array per controller argument
also adds test to ensure correct metadata in cases where controller arguments without attributes follow arguments with attributes
2021-06-01 10:32:34 +02:00
Jérémy Derussé
644e222fc5 Remove constraint for PHP < 8 2021-05-23 11:41:13 +02:00
Robin Chalas
d162d4514e [HttpKernel] Handle multi-attribute controller arguments 2021-02-26 01:25:47 +01:00
Fabien Potencier
d584cf987f Fix CS 2020-09-12 10:28:26 +02:00
Jérôme Vasseur
f7f6e36100 [RFC][HttpKernel][Security] Allowed adding attributes on controller arguments that will be passed to argument resolvers. 2020-09-12 10:22:10 +02:00
Nicolas Grekas
6b8ba82d95 Merge branch '3.4' into 4.4
* 3.4:
  Fix
2020-06-18 21:38:14 +02:00
Nicolas Grekas
66a6ceafd9 Fix 2020-06-18 21:30:53 +02:00
Nicolas Grekas
e8c115612b Fix support for PHP8 union types 2020-06-18 19:59:13 +02:00
Nicolas Grekas
43b9e3c284 Add return types to tests and final|internal|private methods 2019-08-21 17:14:41 +02:00
Alexander M. Turek
a8fd8e6b3a Fix inconsistent return points. 2019-08-20 15:31:17 +02:00
Philippe Segatori
8b25bb90f3 Remove superfluous phpdoc tags 2019-08-14 13:59:53 +02:00
Tobias Schultze
dad46dc2ea use proper return types in ErrorHandler and ArgumentResolver 2019-06-24 02:04:42 +01:00
Fabien Potencier
5999677ee7 Merge branch '3.4' into 4.1
* 3.4:
  fixed CS
  fixed short array CS in comments
  fixed CS in ExpressionLanguage fixtures
  fixed CS in generated files
  fixed CS on generated container files
  fixed CS on Form PHP templates
  fixed CS on YAML fixtures
  fixed fixtures
  switched array() to []
2019-01-16 19:21:11 +01:00
Fabien Potencier
f1b8a42c93 switched array() to [] 2019-01-16 10:39:14 +01:00
Nicolas Grekas
db56a80c4a Merge branch '3.4' into 4.1
* 3.4:
  [php_cs] disable fopen_flags
  [DI] fix error in dumped container
  [CS] Remove unused variables passed to closures
  [DI] fix dumping setters before their inlined instances
  [CS] Remove empty comment
  [CS] Enforces null type hint on last position in phpDocs
  [CS] Use combined assignment operators when possible
  Fix a typo in error messages
  Don't return early as this bypasses the auto exit feature
  [Console] Add missing null to input values allowed types
  [PHPUnitBridge] Fix microtime() format
  bumped Symfony version to 3.4.17
  updated VERSION for 3.4.16
  updated CHANGELOG for 3.4.16
  bumped Symfony version to 2.8.47
  update CONTRIBUTORS for 2.8.46
  updated VERSION for 2.8.46
  updated CHANGELOG for 2.8.46
2018-10-02 14:40:59 +02:00
Nicolas Grekas
9b8bf0ba47 Merge branch '2.8' into 3.4
* 2.8:
  [php_cs] disable fopen_flags
  [CS] Remove unused variables passed to closures
  [CS] Remove empty comment
  [CS] Enforces null type hint on last position in phpDocs
  [CS] Use combined assignment operators when possible
  Fix a typo in error messages
  [Console] Add missing null to input values allowed types
  [PHPUnitBridge] Fix microtime() format
  bumped Symfony version to 2.8.47
  update CONTRIBUTORS for 2.8.46
  updated VERSION for 2.8.46
  updated CHANGELOG for 2.8.46
2018-10-02 14:28:39 +02:00
Nicolas Grekas
eff649a4a0 Merge branch '3.4' into 4.0
* 3.4:
  Fix Clidumper tests
  Enable the fixer enforcing fully-qualified calls for compiler-optimized functions
  Apply fixers
  Disable the native_constant_invocation fixer until it can be scoped
  Update the list of excluded files for the CS fixer
2018-07-26 10:51:09 +02:00
Nicolas Grekas
4e211bd8be Merge branch '2.8' into 3.4
* 2.8:
  Fix Clidumper tests
  Enable the fixer enforcing fully-qualified calls for compiler-optimized functions
  Apply fixers
  Disable the native_constant_invocation fixer until it can be scoped
  Update the list of excluded files for the CS fixer
2018-07-26 10:45:46 +02:00
Nicolas Grekas
1a74b6f07f Merge branch '3.4' into 4.0
* 3.4:
  [PropertyInfo] fix resolving parent|self type hints
  fixed CS
2018-05-16 16:21:07 +02:00
Fabien Potencier
3eaad09082 fixed CS 2018-05-16 14:49:49 +02:00
Nek (Maxime Veber)
8680d05c2f Remove HHVM support (second edition) 2017-07-03 10:26:05 +03:00
Robin Chalas
d9a5ce3114 CS Fixes 2017-05-22 11:03:40 +02:00
Maxime Steinhausser
eb6323a918 Remove PHP < 7.1.3 code 2017-05-22 08:50:05 +02:00
Nicolas Grekas
8de844cf58 [HttpKernel] Clean ArgumentMetadataFactory::getType() 2016-10-06 11:12:13 +02:00
Nicolas Grekas
bb62c92d27 [HttpKernel] Fix nullable types handling 2016-10-04 17:41:48 +02:00
Iltar van der Berg
4b465c0f9c [HttpKernel] Fixed the nullable support for php 7.1 and below 2016-09-14 13:37:40 -07:00
Fabien Potencier
4909f53db3 fixed CS 2016-06-21 08:06:14 +02:00
Jules Pietri
738bf1b1a8 cs fixes 2016-04-01 11:46:27 +02:00
Iltar van der Berg
2881f50240 Added an ArgumentResolver with clean extension point 2016-04-01 11:46:27 +02:00