57 Commits

Author SHA1 Message Date
Dariusz Ruminski
4172fa755c [Console] convert lambdas to static 2025-12-19 17:07:58 +01:00
Fabien Potencier
1857b9ca8b Use <info> for options in command description 2025-08-17 19:04:24 +02:00
Dariusz Ruminski
a7bd3b4484 chore: heredoc indentation as of PHP 7.3
https://www.php.net/manual/en/language.types.string.php#language.types.string.syntax.heredoc
2025-08-10 00:28:14 +02:00
Wouter de Jong
8b83b2fc42 [Components] Convert to native return types 2023-07-05 15:06:06 +02:00
Wouter de Jong
8498d5b763 Add void return types 2023-02-13 14:18:23 +01:00
tigitz
84e47237c7 Leverage arrow function syntax for closure 2023-01-13 10:22:59 +01:00
Grégoire Pineau
783befdfbd [CS] Remove @inheritdoc PHPDoc 2022-08-25 17:27:04 +02:00
Jérôme Tamarelle
b11327587a [Console] Add completion values to input definition 2022-03-17 20:07:08 +01:00
Fabien Potencier
5b67cce06f 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
d5818ed8c2 Remove FQCN type hints on properties 2021-12-08 16:13:44 +01:00
Nicolas Grekas
f2689a1fa6 Merge branch '5.4' into 6.0
* 5.4: (46 commits)
  move username/password fix to non-deprecated Connection class
  cs fix
  [VarDumper] Fix dumping twig templates found in exceptions
  do not replace definition arguments that have not been configured
  fix Console tests on Windows
  [Validator] Add translations for CIDR constraint
  [Dotenv] Fix testLoadEnv() to start from a fresh context
  [Console] Add completion to server:dump command
  bug #42194 [RateLimiter] fix: sliding window policy to use microtime
  [Validator] Update validators.sr_Cyrl.xlf
  [Validator] Update validators.sr_Latn.xlf
  Add suggestions for the option 'format' of lints commands: twig, yaml and xliff
  [VarDumper] Add support for Fiber
  uzb translation
  Update validators.uz.xlf
  Fix logging of impersonator introduced in 5.3
  [Console] Add show proxified command class in completion debug
  skip command completion tests with older Symfony Console versions
  [Uid] Allow use autocompletion
  [Console] Add completion to messenger:setup-transports command
  ...
2021-10-25 17:10:37 +02:00
Alexander M. Turek
ec6ea646a4 [Console] Remove CompletionInterface
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-10-20 23:47:09 +02:00
Jérôme TAMARELLE
6d0aacf4b0 [Console] Add completion to help & list commands 2021-10-20 10:04:21 +02:00
Alexander M. Turek
ce7d4dab6d [Console] Add types to private properties
Signed-off-by: Alexander M. Turek <me@derrabus.de>
2021-08-27 12:20:39 +02:00
Nicolas Grekas
a1ee9d3cdc Add return types - batch 4/n 2021-08-13 10:06:28 +02:00
Fabien Potencier
1ff60c889f 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
5360aa2553 Fix #36973: Command description consistency 2021-03-05 09:58:50 -08:00
Rodrigo Aguilera
9df6bfc5af [Console] Remove "php" invokation from help messages. 2020-10-03 16:00:31 +02:00
Jan Schädlich
cdef5a4a0d [Console] Command::execute() should always return int - deprecate returning null
- added deprecation message for non-int return value in Command::execute()
- fixed all core commands to return proper int values
- added proper return type-hint to Command::execute() method in all core Commands
2019-10-02 16:44:58 +02:00
Fabien Potencier
0dfa0f7578 switched array() to [] 2019-01-16 10:39:14 +01:00
Nicolas Grekas
a84e0fa571 Merge branch '2.8' into 3.4
* 2.8:
  Alpha-ordering for "use" statements
2018-07-26 11:06:28 +02:00
Nicolas Grekas
94bd63fde5 Alpha-ordering for "use" statements 2018-07-26 11:03:18 +02:00
Nicolas Grekas
6a5116fcfe Merge branch '2.8' into 3.3
* 2.8:
  [DI] minor docblock fixes
2017-10-24 16:05:06 +02:00
Nicolas Grekas
ba510e269a [DI] minor docblock fixes 2017-10-24 13:40:19 +02:00
Nicolas Grekas
4cf992c1bd Merge branch '2.8' into 3.0
* 2.8:
  [travis] timeout the sigchild tests at 60s
  CS: Single line comments should use double slashes (//) and not hash (#).
  Do not use HttpKernel Extension when not needed for 2.7
  Do not use HttpKernel Extension when not needed
  bumped Symfony version to 2.8.2
  updated VERSION for 2.8.1
  updated CHANGELOG for 2.8.1
  bumped Symfony version to 2.7.9
  updated VERSION for 2.7.8
  updated CHANGELOG for 2.7.8
  bumped Symfony version to 2.3.37
  updated VERSION for 2.3.36
  update CONTRIBUTORS for 2.3.36
  updated CHANGELOG for 2.3.36
  Revert "Revert "bug #17052 [2.7] Fixed flatten exception recursion with errors (GrahamCampbell)""
  Revert "bug #17052 [2.7] Fixed flatten exception recursion with errors (GrahamCampbell)"
  use nowdoc instead of heredoc

Conflicts:
	CHANGELOG-2.3.md
	CHANGELOG-2.7.md
	CHANGELOG-2.8.md
	src/Symfony/Bundle/FrameworkBundle/Command/RouterApacheDumperCommand.php
	src/Symfony/Bundle/WebProfilerBundle/Command/ExportCommand.php
	src/Symfony/Bundle/WebProfilerBundle/Command/ImportCommand.php
	src/Symfony/Component/Console/Shell.php
	src/Symfony/Component/Console/Tests/Helper/LegacyTableHelperTest.php
	src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
	src/Symfony/Component/HttpKernel/Kernel.php
2015-12-28 14:14:56 +01:00
Nicolas Grekas
915fd82dad Merge branch '2.3' into 2.7
* 2.3:
  [travis] timeout the sigchild tests at 60s
  CS: Single line comments should use double slashes (//) and not hash (#).
  Do not use HttpKernel Extension when not needed
  bumped Symfony version to 2.3.37
  updated VERSION for 2.3.36
  update CONTRIBUTORS for 2.3.36
  updated CHANGELOG for 2.3.36
  use nowdoc instead of heredoc

Conflicts:
	src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php
	src/Symfony/Bundle/FrameworkBundle/Command/RouterApacheDumperCommand.php
	src/Symfony/Bundle/FrameworkBundle/Command/RouterMatchCommand.php
	src/Symfony/Bundle/FrameworkBundle/Translation/Translator.php
	src/Symfony/Bundle/TwigBundle/Command/LintCommand.php
	src/Symfony/Component/Config/Tests/Definition/Dumper/YamlReferenceDumperTest.php
	src/Symfony/Component/Debug/ExceptionHandler.php
	src/Symfony/Component/HttpKernel/Kernel.php
	src/Symfony/Component/Routing/Generator/Dumper/PhpGeneratorDumper.php
2015-12-28 14:11:03 +01:00
Gregor Harlan
d04bd11bb2 use nowdoc instead of heredoc 2015-12-21 17:05:00 +01:00
Diego Saint Esteben
6d6d9031b9 Removed deprecated stuff from the Console component 2015-06-11 16:11:14 -03:00
reecefowell
dff344e5de Silence invasive deprecation warnings, opt-in for warnings 2015-06-08 10:37:21 +01:00
Fabien Potencier
d653620a90 added supported format in commands supporting --format 2015-05-20 10:16:32 +02:00
Fabien Potencier
63c10b7272 deprecated the --xml option for commands 2015-05-17 04:20:26 +02:00
Christian Schmidt
07944837f7 “console help” ignores --raw option 2015-02-08 08:19:48 +01:00
Fabien Potencier
3f4b78c1b5 Merge branch '2.3' into 2.5
* 2.3:
  [2.3] CS And DocBlock Fixes
  [2.3] CS Fixes

Conflicts:
	src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php
	src/Symfony/Bundle/FrameworkBundle/Command/ContainerDebugCommand.php
	src/Symfony/Bundle/FrameworkBundle/Command/RouterDebugCommand.php
	src/Symfony/Bundle/FrameworkBundle/EventListener/TestSessionListener.php
	src/Symfony/Component/Config/Definition/ReferenceDumper.php
	src/Symfony/Component/Console/Application.php
	src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php
	src/Symfony/Component/Filesystem/Tests/FilesystemTest.php
	src/Symfony/Component/Form/Extension/Csrf/EventListener/CsrfValidationListener.php
	src/Symfony/Component/Form/FormError.php
	src/Symfony/Component/HttpFoundation/Request.php
	src/Symfony/Component/HttpFoundation/Response.php
	src/Symfony/Component/HttpKernel/Debug/TraceableEventDispatcher.php
	src/Symfony/Component/Process/ProcessUtils.php
	src/Symfony/Component/PropertyAccess/PropertyAccessor.php
	src/Symfony/Component/PropertyAccess/PropertyAccessorInterface.php
	src/Symfony/Component/Serializer/Encoder/XmlEncoder.php
	src/Symfony/Component/Validator/Constraints/CardSchemeValidator.php
	src/Symfony/Component/Validator/Constraints/GroupSequence.php
	src/Symfony/Component/Validator/Mapping/ClassMetadata.php
	src/Symfony/Component/Validator/Mapping/ClassMetadataFactory.php
	src/Symfony/Component/Validator/Mapping/MemberMetadata.php
	src/Symfony/Component/Validator/Tests/Fixtures/StubGlobalExecutionContext.php
2014-12-22 17:29:52 +01:00
Graham Campbell
365d99b4e0 [2.3] CS And DocBlock Fixes 2014-12-22 16:58:09 +01:00
Disquedur
210faf0c2b Remove aligned '=>' and '=' 2014-10-30 21:17:55 +01:00
Jean-François Simon
ec9c103344 [Console] made descriptors use output instead of returning a string
[console] made descriptors use output instead of returning a string
[console] updated descriptors usage
[console] fixed descriptors usage & tests
[console] applied advices from github
[Console] applied advices from github

updated changelog
2013-07-31 15:28:38 +02:00
Jean-François Simon
830e901eb6 [Console] application/command as text/xml/whatever decoupling 2013-04-23 18:54:00 +02:00
Fabien Potencier
3cbedb8311 Merge branch '2.1'
* 2.1:
  added missing use statment (closes #5825)
  Code cleanup
  [WebProfilerBundle] Fixed the use of nested macros
  Removed unused use statements.
  Nsdocblocks
  [ConfigDumpReference] avoid notice for variable nodes
  fixed fallback locale
  UniqueValidatorTest, Change message on assertions
  Documented removed _form_is_choice_group function

Conflicts:
	src/Symfony/Bundle/FrameworkBundle/Command/ConfigDumpReferenceCommand.php
	src/Symfony/Bundle/WebProfilerBundle/Profiler/TemplateManager.php
2012-10-24 17:41:27 +02:00
Mario A. Alvarez Garcia
55030275de Code cleanup 2012-10-22 10:37:12 -04:00
Loic Chardonnet
7eb175f2da [i5669][Console] Adding a note about the list command in the help command 2012-10-14 11:18:34 +02:00
Gunther Konig
eda5644dd1 use ->find instead of ->get in the help command to allow command aliases to be used (e.g. "./app/console help do:sc:ge") 2012-09-20 11:09:17 +03:00
Tobias Schultze
f48469a341 replaced command names with supported placeholders in help texts 2012-03-21 05:31:52 +01:00
Fabien Potencier
d43963becb [Console] fixed help command when used from the shell (closes #3480) 2012-03-02 23:14:57 +01:00
Fabien Potencier
44cce6b12e [Console] added a missing method (closes #3043) 2012-01-06 04:12:25 +01:00
Hugo Hamon
1f2520b214 [Console] harmonized commands documentation by changing ./app/console to php app/console. 2011-07-28 10:01:57 +02:00
Paul
19c452c165 made command consistent with other help texts (it's now './app/console', instead of 'php app/console') 2011-07-04 20:18:08 +02:00
Paul
bbf452a9e0 Corrected help text from './symfony' to 'php app/console' 2011-07-04 20:06:30 +02:00
Fabien Potencier
eb31d4a62b [Console] removed the ? alias for help and fix a few bugs from the previous commit 2011-06-07 18:26:00 +02:00
Fabien Potencier
4412424535 [Console] moved Output constants to OutputInterface 2011-03-29 21:53:28 +02:00
Fabien Potencier
67dbf5e17d moved most protected to private in the Console component 2011-03-11 12:53:42 +01:00