8000 Add missing use statements · symfony/symfony@cd27b9d · GitHub
[go: up one dir, main page]

Skip to content

Commit cd27b9d

Browse files
committed
Add missing use statements
1 parent 45f5564 commit cd27b9d

File tree

8 files changed

+11
-3
lines changed

8 files changed

+11
-3
lines changed

src/Symfony/Bundle/SecurityBundle/Debug/WrappedListener.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Bundle\SecurityBundle\Debug;
1313

1414
use Symfony\Component\HttpKernel\Event\RequestEvent;
15+
use Symfony\Component\Security\Http\Firewall\AbstractListener;
1516
use Symfony\Component\Security\Http\Firewall\ListenerInterface;
1617

1718
/**

src/Symfony/Component/Cache/Simple/TraceableCache.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Cache\Simple;
1313

1414
use Psr\SimpleCache\CacheInterface as Psr16CacheInterface;
15+
use Symfony\Component\Cache\Adapter\TraceableAdapter;
1516
use Symfony\Component\Cache\PruneableInterface;
1617
use Symfony\Component\Cache\ResettableInterface;
1718
use Symfony\Contracts\Cache\CacheInterface;

src/Symfony/Component/HttpFoundation/Session/Storage/Handler/SessionHandlerFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function createHandler($connection): AbstractSessionHandler
5454
case 0 === strpos($connection, 'rediss:'):
5555
case 0 === strpos($connection, 'memcached:'):
5656
if (!class_exists(AbstractAdapter::class)) {
57-
throw new InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $connection));
57+
throw new \InvalidArgumentException(sprintf('Unsupported DSN "%s". Try running "composer require symfony/cache".', $connection));
5858
}
5959
$handlerClass = 0 === strpos($connection, 'memcached:') ? MemcachedSessionHandler::class : RedisSessionHandler::class;
6060
$connection = AbstractAdapter::createConnection($connection, ['lazy' => true]);

src/Symfony/Component/Mime/Test/Constraint/EmailAttachmentCount.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
namespace Symfony\Component\Mime\Test\Constraint;
1313

1414
use PHPUnit\Framework\Constraint\Constraint;
15+
use Symfony\Component\Mime\Message;
1516
use Symfony\Component\Mime\RawMessage;
1617

1718
final class EmailAttachmentCount extends Constraint

src/Symfony/Component/Mime/Test/Constraint/EmailHtmlBodyContains.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
namespace Symfony\Component\Mime\Test\Constraint;
1313

1414
use PHPUnit\Framework\Constraint\Constraint;
15+
use Symfony\Component\Mime\Message;
16+
use Symfony\Component\Mime\RawMessage;
1517

1618
final class EmailHtmlBodyContains extends Constraint
1719
{

src/Symfony/Component/Mime/Test/Constraint/EmailTextBodyContains.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
namespace Symfony\Component\Mime\Test\Constraint;
1313

1414
use PHPUnit\Framework\Constraint\Constraint;
15+
use Symfony\Component\Mime\Message;
16+
use Symfony\Component\Mime\RawMessage;
1517

1618
final class EmailTextBodyContains extends Constraint
1719
{

src/Symfony/Component/Security/Core/User/LdapUserProvider.php

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

1212
namespace Symfony\Component\Security\Core\User;
1313

14-
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4, use "%s" instead.', LdapUserProvider::class, BaseLdapUserProvider::class), E_USER_DEPRECATED);
15-
1614
use Symfony\Component\Ldap\Entry;
1715
use Symfony\Component\Ldap\Security\LdapUserProvider as BaseLdapUserProvider;
1816
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
1917

18+
@trigger_error(sprintf('The "%s" class is deprecated since Symfony 4.4, use "%s" instead.', LdapUserProvider::class, BaseLdapUserProvider::class), E_USER_DEPRECATED);
19+
2020
/**
2121
* LdapUserProvider is a simple user provider on top of ldap.
2222
*

src/Symfony/Component/Security/Http/Firewall.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
use Symfony\Component\HttpKernel\Event\GetResponseEvent;
1818
use Symfony\Component\HttpKernel\Event\RequestEvent;
1919
use Symfony\Component\HttpKernel\KernelEvents;
20+
use Symfony\Component\Security\Http\Firewall\AbstractListener;
2021
use Symfony\Component\Security\Http\Firewall\AccessListener;
2122
use Symfony\Component\Security\Http\Firewall\LogoutListener;
2223

0 commit comments

Comments
 (0)
0