8000 Service Discovery -> service discovery · symfony/symfony@1da8b12 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1da8b12

Browse files
committed
Service Discovery -> service discovery
1 parent 669d344 commit 1da8b12

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

UPGRADE-3.4.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ HttpKernel
118118
----------
119119

120120
* Relying on convention-based commands discovery has been deprecated and
121-
won't be supported in 4.0. Use PSR-4 based Service Discovery instead.
121+
won't be supported in 4.0. Use PSR-4 based service discovery instead.
122122

123123
Before:
124124

UPGRADE-4.0.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ HttpKernel
453453
----------
454454

455455
* Relying on convention-based commands discovery is not supported anymore.
456-
Use PSR-4 based Service Discovery instead.
456+
Use PSR-4 based service discovery instead.
457457

458458
Before:
459459

@@ -462,7 +462,7 @@ HttpKernel
462462
services:
463463
# ...
464464
465-
# implicit commands registration
465+
# implicit registration of all commands in the `Command` folder
466466
```
467467

468468
After:

src/Symfony/Component/HttpKernel/Bundle/Bundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public function registerCommands(Application $application)
191191
}
192192
$r = new \ReflectionClass($class);
193193
if ($r->isSubclassOf('Symfony\\Component\\Console\\Command\\Command') && !$r->isAbstract() && !$r->getConstructor()->getNumberOfRequiredParameters()) {
194-
@trigger_error(sprintf('Auto-registration of the command "%s" is deprecated since Symfony 3.4 and won\'t be supported in 4.0. Use PSR-4 based Service Discovery instead.', $class), E_USER_DEPRECATED);
194+
@trigger_error(sprintf('Auto-registration of the command "%s" is deprecated since Symfony 3.4 and won\'t be supported in 4.0. Use PSR-4 based service discovery instead.', $class), E_USER_DEPRECATED);
195195

196196
$application->add($r->newInstance());
197197
}

src/Symfony/Component/HttpKernel/Tests/Bundle/BundleTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function testGetContainerExtension()
3333

3434
/**
3535
* @group legacy
36-
* @expectedDeprecation Auto-registration of the command "Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionPresentBundle\Command\FooCommand" is deprecated since Symfony 3.4 and won't be supported in 4.0. Use PSR-4 based Service Discovery instead.
36+
* @expectedDeprecation Auto-registration of the command "Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionPresentBundle\Command\FooCommand" is deprecated since Symfony 3.4 and won't be supported in 4.0. Use PSR-4 based service discovery instead.
3737
*/
3838
public function testRegisterCommands()
3939
{

0 commit comments

Comments
 (0)
0