Don't use sprintf in trigger_deprecation() calls
This commit is contained in:
parent
f052d11a43
commit
9ba8f0567d
@ -502,7 +502,7 @@ class Crawler implements \Countable, \IteratorAggregate
|
|||||||
*/
|
*/
|
||||||
public function parents()
|
public function parents()
|
||||||
{
|
{
|
||||||
trigger_deprecation('symfony/dom-crawler', '5.3', sprintf('The %s() method is deprecated, use ancestors() instead.', __METHOD__));
|
trigger_deprecation('symfony/dom-crawler', '5.3', 'The %s() method is deprecated, use ancestors() instead.', __METHOD__);
|
||||||
|
|
||||||
return $this->ancestors();
|
return $this->ancestors();
|
||||||
}
|
}
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\HttpFoundation\Session\Attribute;
|
namespace Symfony\Component\HttpFoundation\Session\Attribute;
|
||||||
|
|
||||||
trigger_deprecation('symfony/http-foundation', '5.3', sprintf('The "%s" class is deprecated.', NamespacedAttributeBag::class));
|
trigger_deprecation('symfony/http-foundation', '5.3', 'The "%s" class is deprecated.', NamespacedAttributeBag::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class provides structured storage of session attributes using
|
* This class provides structured storage of session attributes using
|
||||||
|
@ -13,7 +13,7 @@ namespace Symfony\Component\Security\Core\Encoder;
|
|||||||
|
|
||||||
use Symfony\Component\PasswordHasher\Hasher\CheckPasswordLengthTrait;
|
use Symfony\Component\PasswordHasher\Hasher\CheckPasswordLengthTrait;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', BasePasswordEncoder::class, CheckPasswordLengthTrait::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', BasePasswordEncoder::class, CheckPasswordLengthTrait::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BasePasswordEncoder is the base class for all password encoders.
|
* BasePasswordEncoder is the base class for all password encoders.
|
||||||
|
@ -15,7 +15,7 @@ use Symfony\Component\PasswordHasher\Hasher\PasswordHasherAwareInterface;
|
|||||||
use Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactory;
|
use Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactory;
|
||||||
use Symfony\Component\Security\Core\Exception\LogicException;
|
use Symfony\Component\Security\Core\Exception\LogicException;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', EncoderFactory::class, PasswordHasherFactory::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', EncoderFactory::class, PasswordHasherFactory::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A generic encoder factory implementation.
|
* A generic encoder factory implementation.
|
||||||
|
@ -14,7 +14,7 @@ namespace Symfony\Component\Security\Core\Encoder;
|
|||||||
use Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactoryInterface;
|
use Symfony\Component\PasswordHasher\Hasher\PasswordHasherFactoryInterface;
|
||||||
use Symfony\Component\Security\Core\User\UserInterface;
|
use Symfony\Component\Security\Core\User\UserInterface;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', EncoderFactoryInterface::class, PasswordHasherFactoryInterface::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', EncoderFactoryInterface::class, PasswordHasherFactoryInterface::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* EncoderFactoryInterface to support different encoders for different accounts.
|
* EncoderFactoryInterface to support different encoders for different accounts.
|
||||||
|
@ -13,7 +13,7 @@ namespace Symfony\Component\Security\Core\Encoder;
|
|||||||
|
|
||||||
use Symfony\Component\PasswordHasher\Hasher\MessageDigestPasswordHasher;
|
use Symfony\Component\PasswordHasher\Hasher\MessageDigestPasswordHasher;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', MessageDigestPasswordEncoder::class, MessageDigestPasswordHasher::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', MessageDigestPasswordEncoder::class, MessageDigestPasswordHasher::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* MessageDigestPasswordEncoder uses a message digest algorithm.
|
* MessageDigestPasswordEncoder uses a message digest algorithm.
|
||||||
|
@ -13,7 +13,7 @@ namespace Symfony\Component\Security\Core\Encoder;
|
|||||||
|
|
||||||
use Symfony\Component\PasswordHasher\Hasher\MigratingPasswordHasher;
|
use Symfony\Component\PasswordHasher\Hasher\MigratingPasswordHasher;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', MigratingPasswordEncoder::class, MigratingPasswordHasher::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', MigratingPasswordEncoder::class, MigratingPasswordHasher::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hashes passwords using the best available encoder.
|
* Hashes passwords using the best available encoder.
|
||||||
|
@ -13,7 +13,7 @@ namespace Symfony\Component\Security\Core\Encoder;
|
|||||||
|
|
||||||
use Symfony\Component\PasswordHasher\Hasher\NativePasswordHasher;
|
use Symfony\Component\PasswordHasher\Hasher\NativePasswordHasher;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', NativePasswordEncoder::class, NativePasswordHasher::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', NativePasswordEncoder::class, NativePasswordHasher::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hashes passwords using password_hash().
|
* Hashes passwords using password_hash().
|
||||||
|
@ -14,7 +14,7 @@ namespace Symfony\Component\Security\Core\Encoder;
|
|||||||
use Symfony\Component\PasswordHasher\PasswordHasherInterface;
|
use Symfony\Component\PasswordHasher\PasswordHasherInterface;
|
||||||
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
|
use Symfony\Component\Security\Core\Exception\BadCredentialsException;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', PasswordEncoderInterface::class, PasswordHasherInterface::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', PasswordEncoderInterface::class, PasswordHasherInterface::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PasswordEncoderInterface is the interface for all encoders.
|
* PasswordEncoderInterface is the interface for all encoders.
|
||||||
|
@ -13,7 +13,7 @@ namespace Symfony\Component\Security\Core\Encoder;
|
|||||||
|
|
||||||
use Symfony\Component\PasswordHasher\Hasher\Pbkdf2PasswordHasher;
|
use Symfony\Component\PasswordHasher\Hasher\Pbkdf2PasswordHasher;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', Pbkdf2PasswordEncoder::class, Pbkdf2PasswordHasher::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', Pbkdf2PasswordEncoder::class, Pbkdf2PasswordHasher::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Pbkdf2PasswordEncoder uses the PBKDF2 (Password-Based Key Derivation Function 2).
|
* Pbkdf2PasswordEncoder uses the PBKDF2 (Password-Based Key Derivation Function 2).
|
||||||
|
@ -13,7 +13,7 @@ namespace Symfony\Component\Security\Core\Encoder;
|
|||||||
|
|
||||||
use Symfony\Component\PasswordHasher\Hasher\PlaintextPasswordHasher;
|
use Symfony\Component\PasswordHasher\Hasher\PlaintextPasswordHasher;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', PlaintextPasswordEncoder::class, PlaintextPasswordHasher::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', PlaintextPasswordEncoder::class, PlaintextPasswordHasher::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PlaintextPasswordEncoder does not do any encoding but is useful in testing environments.
|
* PlaintextPasswordEncoder does not do any encoding but is useful in testing environments.
|
||||||
|
@ -13,7 +13,7 @@ namespace Symfony\Component\Security\Core\Encoder;
|
|||||||
|
|
||||||
use Symfony\Component\PasswordHasher\LegacyPasswordHasherInterface;
|
use Symfony\Component\PasswordHasher\LegacyPasswordHasherInterface;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" interface is deprecated, use "%s" on hasher implementations that deal with salts instead.', SelfSaltingEncoderInterface::class, LegacyPasswordHasherInterface::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" interface is deprecated, use "%s" on hasher implementations that deal with salts instead.', SelfSaltingEncoderInterface::class, LegacyPasswordHasherInterface::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* SelfSaltingEncoderInterface is a marker interface for encoders that do not
|
* SelfSaltingEncoderInterface is a marker interface for encoders that do not
|
||||||
|
@ -13,7 +13,7 @@ namespace Symfony\Component\Security\Core\Encoder;
|
|||||||
|
|
||||||
use Symfony\Component\PasswordHasher\Hasher\SodiumPasswordHasher;
|
use Symfony\Component\PasswordHasher\Hasher\SodiumPasswordHasher;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', SodiumPasswordEncoder::class, SodiumPasswordHasher::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', SodiumPasswordEncoder::class, SodiumPasswordHasher::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Hashes passwords using libsodium.
|
* Hashes passwords using libsodium.
|
||||||
|
@ -16,7 +16,7 @@ use Symfony\Component\Security\Core\User\LegacyPasswordAuthenticatedUserInterfac
|
|||||||
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
|
use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface;
|
||||||
use Symfony\Component\Security\Core\User\UserInterface;
|
use Symfony\Component\Security\Core\User\UserInterface;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" class is deprecated, use "%s" instead.', UserPasswordEncoder::class, UserPasswordHasher::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" class is deprecated, use "%s" instead.', UserPasswordEncoder::class, UserPasswordHasher::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A generic password encoder.
|
* A generic password encoder.
|
||||||
|
@ -14,7 +14,7 @@ namespace Symfony\Component\Security\Core\Encoder;
|
|||||||
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
use Symfony\Component\PasswordHasher\Hasher\UserPasswordHasherInterface;
|
||||||
use Symfony\Component\Security\Core\User\UserInterface;
|
use Symfony\Component\Security\Core\User\UserInterface;
|
||||||
|
|
||||||
trigger_deprecation('symfony/security-core', '5.3', sprintf('The "%s" interface is deprecated, use "%s" instead.', UserPasswordEncoderInterface::class, UserPasswordHasherInterface::class));
|
trigger_deprecation('symfony/security-core', '5.3', 'The "%s" interface is deprecated, use "%s" instead.', UserPasswordEncoderInterface::class, UserPasswordHasherInterface::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* UserPasswordEncoderInterface is the interface for the password encoder service.
|
* UserPasswordEncoderInterface is the interface for the password encoder service.
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
namespace Symfony\Component\Workflow\Exception;
|
namespace Symfony\Component\Workflow\Exception;
|
||||||
|
|
||||||
trigger_deprecation('symfony/workflow', '5.3', sprintf('The "%s" class is deprecated.', InvalidTokenConfigurationException::class));
|
trigger_deprecation('symfony/workflow', '5.3', 'The "%s" class is deprecated.', InvalidTokenConfigurationException::class);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Thrown by GuardListener when there is no token set, but guards are placed on a transition.
|
* Thrown by GuardListener when there is no token set, but guards are placed on a transition.
|
||||||
|
Reference in New Issue
Block a user