8000 minor #18634 Remove some unused use (alamirault) · symfony/symfony-docs@b2f315d · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b2f315d

Browse files
committed
minor #18634 Remove some unused use (alamirault)
This PR was merged into the 5.4 branch. Discussion ---------- Remove some unused use Found when working on #18633 Commits ------- 546fc2f Remove some unused use
2 parents 2415e00 + 546fc2f commit b2f315d

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

components/event_dispatcher.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@ determine which instance is passed.
182182

183183
use Symfony\Component\DependencyInjection\ContainerBuilder;
184184
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
185-
use Symfony\Component\DependencyInjection\Reference;
186185
use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass;
187186
use Symfony\Component\EventDispatcher\EventDispatcher;
188187

@@ -213,7 +212,6 @@ determine which instance is passed.
213212
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
214213
use Symfony\Component\DependencyInjection\ContainerBuilder;
215214
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
216-
use Symfony\Component\DependencyInjection\Reference;
217215
use Symfony\Component\EventDispatcher\DependencyInjection\AddEventAliasesPass;
218216
use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass;
219217
use Symfony\Component\EventDispatcher\EventDispatcher;

configuration.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ In PHP >= 8, you can remove the two arguments when autoconfiguration is enabled
846846
# config/services.yaml
847847
services:
848848
Symfony\Component\Dotenv\Command\DotenvDumpCommand: ~
849-
849+
850850
Then, run the command:
851851

852852
.. code-block:: terminal
@@ -1064,8 +1064,6 @@ whenever a service/controller defines a ``$projectDir`` argument, use this:
10641064
// config/services.php
10651065
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
10661066
1067-
use App\Controller\LuckyController;
1068-
10691067
return static function (ContainerConfigurator $container) {
10701068
$container->services()
10711069
->defaults()

frontend/custom_version_strategy.rst

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ After creating the strategy PHP class, register it as a Symfony service.
139139
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
140140
141141
use App\Asset\VersionStrategy\GulpBusterVersionStrategy;
142-
use Symfony\Component\DependencyInjection\Definition;
143142
144143
return function(ContainerConfigurator $container) {
145144
$services = $container->services();

service_container.rst

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -803,10 +803,7 @@ You can also use the ``bind`` keyword to bind specific arguments by name or type
803803
// config/services.php
804804
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
805805
806-
use App\Controller\LuckyController;
807806
use Psr\Log\LoggerInterface;
808-
use Symfony\Component\DependencyInjection\Definition;
809-
use Symfony\Component\DependencyInjection\Reference;
810807
811808
return function(ContainerConfigurator $container) {
812809
$services = $container->services()

0 commit comments

Comments
 (0)
0