8000 Move deprecation under use statements · symfony/symfony@0a5b016 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a5b016

Browse files
greg0irenicolas-grekas
authored andcommitted
Move deprecation under use statements
1 parent 8d7f6ed commit 0a5b016

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

src/Symfony/Bridge/Twig/Form/TwigRenderer.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Bridge\Twig\Form;
1313

14-
@trigger_error(sprintf('The %s class is deprecated since version 3.4 and will be removed in 4.0. Use %s instead.', TwigRenderer::class, FormRenderer::class), E_USER_DEPRECATED);
15-
1614
use Symfony\Component\Form\FormRenderer;
1715
use Symfony\Component\Security\Csrf\CsrfTokenManagerInterface;
1816
use Twig\Environment;
1917

18+
@trigger_error(sprintf('The %s class is deprecated since version 3.4 and will be removed in 4.0. Use %s instead.', TwigRenderer::class, FormRenderer::class), E_USER_DEPRECATED);
19+
2020
/**
2121
* @author Bernhard Schussek <bschussek@gmail.com>
2222
*

src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,6 @@
1111

1212
namespace Symfony\Bundle\SecurityBundle\Command;
1313

14-
@trigger_error(sprintf('Class "%s" is deprecated since version 3.4 and will be removed in 4.0. Use Symfony\Bundle\AclBundle\Command\SetAclCommand instead.', SetAclCommand::class), E_USER_DEPRECATED);
15-
1614
use Symfony\Bundle\FrameworkBundle\Command\ContainerAwareCommand;
1715
use Symfony\Component\Console\Input\InputInterface;
1816
use Symfony\Component\Console\Output\ConsoleOutputInterface;
@@ -22,6 +20,8 @@
2220
use Doctrine\DBAL\Connection;
2321
use Doctrine\DBAL\Schema\SchemaException;
2422

23+
@trigger_error(sprintf('Class "%s" is deprecated since version 3.4 and will be removed in 4.0. Use Symfony\Bundle\AclBundle\Command\InitAclCommand instead.', InitAclCommand::class), E_USER_DEPRECATED);
24+
2525
/**
2626
* Installs the tables required by the ACL system.
2727
*

src/Symfony/Component/Filesystem/LockHandler.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@
1111

1212
namespace Symfony\Component\Filesystem;
1313

14-
@trigger_error(sprintf('The %s class is deprecated since version 3.4 and will be removed in 4.0. Use %s or %s instead.', LockHandler::class, SemaphoreStore::class, FlockStore::class), E_USER_DEPRECATED);
15-
1614
use Symfony\Component\Filesystem\Exception\IOException;
1715
use Symfony\Component\Lock\Store\FlockStore;
1816
use Symfony\Component\Lock\Store\SemaphoreStore;
1917

18+
@trigger_error(sprintf('The %s class is deprecated since version 3.4 and will be removed in 4.0. Use %s or %s instead.', LockHandler::class, SemaphoreStore::class, FlockStore::class), E_USER_DEPRECATED);
19+
2020
/**
2121
* LockHandler class provides a simple abstraction to lock anything by means of
2222
* a file lock.

0 commit comments

Comments
 (0)
0