Updates to vendors etc

This commit is contained in:
Chris Hunt
2025-07-11 15:57:48 +01:00
parent d972cbcd0a
commit 8fb6438254
8043 changed files with 248005 additions and 189479 deletions

View File

@@ -16,8 +16,12 @@ use Symfony\Component\Cache\Exception\InvalidArgumentException;
use Symfony\Component\Cache\Marshaller\DefaultMarshaller;
use Symfony\Component\Cache\Marshaller\MarshallerInterface;
trigger_deprecation('symfony/cache', '7.1', 'The "%s" class is deprecated, use "%s" instead.', CouchbaseBucketAdapter::class, CouchbaseCollectionAdapter::class);
/**
* @author Antonio Jose Cerezo Aranda <aj.cerezo@gmail.com>
*
* @deprecated since Symfony 7.1, use {@see CouchbaseCollectionAdapter} instead
*/
class CouchbaseBucketAdapter extends AbstractAdapter
{
@@ -36,19 +40,20 @@ class CouchbaseBucketAdapter extends AbstractAdapter
'durabilityTimeout',
];
private \CouchbaseBucket $bucket;
private MarshallerInterface $marshaller;
public function __construct(\CouchbaseBucket $bucket, string $namespace = '', int $defaultLifetime = 0, ?MarshallerInterface $marshaller = null)
{
public function __construct(
private \CouchbaseBucket $bucket,
string $namespace = '',
int $defaultLifetime = 0,
?MarshallerInterface $marshaller = null,
) {
if (!static::isSupported()) {
throw new CacheException('Couchbase >= 2.6.0 < 3.0.0 is required.');
}
$this->maxIdLength = static::MAX_KEY_LENGTH;
$this->bucket = $bucket;
parent::__construct($namespace, $defaultLifetime);
$this->enableVersioning();
$this->marshaller = $marshaller ?? new DefaultMarshaller();
@@ -107,7 +112,7 @@ class CouchbaseBucketAdapter extends AbstractAdapter
unset($options['username'], $options['password']);
foreach ($options as $option => $value) {
if (!empty($value)) {
if ($value) {
$bucket->$option = $value;
}
}