Skip to content

Remove some unused use #18634

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 31, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions components/event_dispatcher.rst
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,6 @@ determine which instance is passed.

use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass;
use Symfony\Component\EventDispatcher\EventDispatcher;

Expand Down Expand Up @@ -213,7 +212,6 @@ determine which instance is passed.
use Symfony\Component\DependencyInjection\Compiler\PassConfig;
use Symfony\Component\DependencyInjection\ContainerBuilder;
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBag;
use Symfony\Component\DependencyInjection\Reference;
use Symfony\Component\EventDispatcher\DependencyInjection\AddEventAliasesPass;
use Symfony\Component\EventDispatcher\DependencyInjection\RegisterListenersPass;
use Symfony\Component\EventDispatcher\EventDispatcher;
Expand Down
4 changes: 1 addition & 3 deletions configuration.rst
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ In PHP >= 8, you can remove the two arguments when autoconfiguration is enabled
# config/services.yaml
services:
Symfony\Component\Dotenv\Command\DotenvDumpCommand: ~

Then, run the command:

.. code-block:: terminal
Expand Down Expand Up @@ -1064,8 +1064,6 @@ whenever a service/controller defines a ``$projectDir`` argument, use this:
// config/services.php
namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use App\Controller\LuckyController;

return static function (ContainerConfigurator $container) {
$container->services()
->defaults()
Expand Down
1 change: 0 additions & 1 deletion frontend/custom_version_strategy.rst
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ After creating the strategy PHP class, register it as a Symfony service.
namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use App\Asset\VersionStrategy\GulpBusterVersionStrategy;
use Symfony\Component\DependencyInjection\Definition;

return function(ContainerConfigurator $container) {
$services = $container->services();
Expand Down
3 changes: 0 additions & 3 deletions service_container.rst
Original file line number Diff line number Diff line change
Expand Up @@ -803,10 +803,7 @@ You can also use the ``bind`` keyword to bind specific arguments by name or type
// config/services.php
namespace Symfony\Component\DependencyInjection\Loader\Configurator;

use App\Controller\LuckyController;
use Psr\Log\LoggerInterface;
use Symfony\Component\DependencyInjection\Definition;
use Symfony\Component\DependencyInjection\Reference;

return function(ContainerConfigurator $container) {
$services = $container->services()
Expand Down