mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 11:08:45 +02:00
N°6934 - Symfony 6.4 - upgrade Symfony bundles to 6.4 (#580)
* Update Symfony lib to version ~6.4.0 * Update code missing return type * Add an iTop general configuration entry to store application secret (Symfony mandatory parameter) * Use dependency injection in ExceptionListener & UserProvider classes
This commit is contained in:
17
lib/psr/cache/README.md
vendored
17
lib/psr/cache/README.md
vendored
@@ -1,9 +1,12 @@
|
||||
PSR Cache
|
||||
=========
|
||||
Caching Interface
|
||||
==============
|
||||
|
||||
This repository holds all interfaces defined by
|
||||
[PSR-6](http://www.php-fig.org/psr/psr-6/).
|
||||
This repository holds all interfaces related to [PSR-6 (Caching Interface)][psr-url].
|
||||
|
||||
Note that this is not a Cache implementation of its own. It is merely an
|
||||
interface that describes a Cache implementation. See the specification for more
|
||||
details.
|
||||
Note that this is not a Caching implementation of its own. It is merely interfaces that describe the components of a Caching mechanism.
|
||||
|
||||
The installable [package][package-url] and [implementations][implementation-url] are listed on Packagist.
|
||||
|
||||
[psr-url]: https://www.php-fig.org/psr/psr-6/
|
||||
[package-url]: https://packagist.org/packages/psr/cache
|
||||
[implementation-url]: https://packagist.org/providers/psr/cache-implementation
|
||||
|
||||
4
lib/psr/cache/composer.json
vendored
4
lib/psr/cache/composer.json
vendored
@@ -6,11 +6,11 @@
|
||||
"authors": [
|
||||
{
|
||||
"name": "PHP-FIG",
|
||||
"homepage": "http://www.php-fig.org/"
|
||||
"homepage": "https://www.php-fig.org/"
|
||||
}
|
||||
],
|
||||
"require": {
|
||||
"php": ">=5.3.0"
|
||||
"php": ">=8.0.0"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
||||
2
lib/psr/cache/src/CacheException.php
vendored
2
lib/psr/cache/src/CacheException.php
vendored
@@ -5,6 +5,6 @@ namespace Psr\Cache;
|
||||
/**
|
||||
* Exception interface for all exceptions thrown by an Implementing Library.
|
||||
*/
|
||||
interface CacheException
|
||||
interface CacheException extends \Throwable
|
||||
{
|
||||
}
|
||||
|
||||
14
lib/psr/cache/src/CacheItemInterface.php
vendored
14
lib/psr/cache/src/CacheItemInterface.php
vendored
@@ -32,7 +32,7 @@ interface CacheItemInterface
|
||||
* @return string
|
||||
* The key string for this cache item.
|
||||
*/
|
||||
public function getKey();
|
||||
public function getKey(): string;
|
||||
|
||||
/**
|
||||
* Retrieves the value of the item from the cache associated with this object's key.
|
||||
@@ -46,7 +46,7 @@ interface CacheItemInterface
|
||||
* @return mixed
|
||||
* The value corresponding to this cache item's key, or null if not found.
|
||||
*/
|
||||
public function get();
|
||||
public function get(): mixed;
|
||||
|
||||
/**
|
||||
* Confirms if the cache item lookup resulted in a cache hit.
|
||||
@@ -57,7 +57,7 @@ interface CacheItemInterface
|
||||
* @return bool
|
||||
* True if the request resulted in a cache hit. False otherwise.
|
||||
*/
|
||||
public function isHit();
|
||||
public function isHit(): bool;
|
||||
|
||||
/**
|
||||
* Sets the value represented by this cache item.
|
||||
@@ -72,12 +72,12 @@ interface CacheItemInterface
|
||||
* @return static
|
||||
* The invoked object.
|
||||
*/
|
||||
public function set($value);
|
||||
public function set(mixed $value): static;
|
||||
|
||||
/**
|
||||
* Sets the expiration time for this cache item.
|
||||
*
|
||||
* @param \DateTimeInterface|null $expiration
|
||||
* @param ?\DateTimeInterface $expiration
|
||||
* The point in time after which the item MUST be considered expired.
|
||||
* If null is passed explicitly, a default value MAY be used. If none is set,
|
||||
* the value should be stored permanently or for as long as the
|
||||
@@ -86,7 +86,7 @@ interface CacheItemInterface
|
||||
* @return static
|
||||
* The called object.
|
||||
*/
|
||||
public function expiresAt($expiration);
|
||||
public function expiresAt(?\DateTimeInterface $expiration): static;
|
||||
|
||||
/**
|
||||
* Sets the expiration time for this cache item.
|
||||
@@ -101,5 +101,5 @@ interface CacheItemInterface
|
||||
* @return static
|
||||
* The called object.
|
||||
*/
|
||||
public function expiresAfter($time);
|
||||
public function expiresAfter(int|\DateInterval|null $time): static;
|
||||
}
|
||||
|
||||
24
lib/psr/cache/src/CacheItemPoolInterface.php
vendored
24
lib/psr/cache/src/CacheItemPoolInterface.php
vendored
@@ -29,7 +29,7 @@ interface CacheItemPoolInterface
|
||||
* @return CacheItemInterface
|
||||
* The corresponding Cache Item.
|
||||
*/
|
||||
public function getItem($key);
|
||||
public function getItem(string $key): CacheItemInterface;
|
||||
|
||||
/**
|
||||
* Returns a traversable set of cache items.
|
||||
@@ -41,13 +41,13 @@ interface CacheItemPoolInterface
|
||||
* If any of the keys in $keys are not a legal value a \Psr\Cache\InvalidArgumentException
|
||||
* MUST be thrown.
|
||||
*
|
||||
* @return array|\Traversable
|
||||
* A traversable collection of Cache Items keyed by the cache keys of
|
||||
* @return iterable
|
||||
* An iterable collection of Cache Items keyed by the cache keys of
|
||||
* each item. A Cache item will be returned for each key, even if that
|
||||
* key is not found. However, if no keys are specified then an empty
|
||||
* traversable MUST be returned instead.
|
||||
*/
|
||||
public function getItems(array $keys = array());
|
||||
public function getItems(array $keys = []): iterable;
|
||||
|
||||
/**
|
||||
* Confirms if the cache contains specified cache item.
|
||||
@@ -66,7 +66,7 @@ interface CacheItemPoolInterface
|
||||
* @return bool
|
||||
* True if item exists in the cache, false otherwise.
|
||||
*/
|
||||
public function hasItem($key);
|
||||
public function hasItem(string $key): bool;
|
||||
|
||||
/**
|
||||
* Deletes all items in the pool.
|
||||
@@ -74,7 +74,7 @@ interface CacheItemPoolInterface
|
||||
* @return bool
|
||||
* True if the pool was successfully cleared. False if there was an error.
|
||||
*/
|
||||
public function clear();
|
||||
public function clear(): bool;
|
||||
|
||||
/**
|
||||
* Removes the item from the pool.
|
||||
@@ -89,14 +89,14 @@ interface CacheItemPoolInterface
|
||||
* @return bool
|
||||
* True if the item was successfully removed. False if there was an error.
|
||||
*/
|
||||
public function deleteItem($key);
|
||||
public function deleteItem(string $key): bool;
|
||||
|
||||
/**
|
||||
* Removes multiple items from the pool.
|
||||
*
|
||||
* @param string[] $keys
|
||||
* An array of keys that should be removed from the pool.
|
||||
|
||||
*
|
||||
* @throws InvalidArgumentException
|
||||
* If any of the keys in $keys are not a legal value a \Psr\Cache\InvalidArgumentException
|
||||
* MUST be thrown.
|
||||
@@ -104,7 +104,7 @@ interface CacheItemPoolInterface
|
||||
* @return bool
|
||||
* True if the items were successfully removed. False if there was an error.
|
||||
*/
|
||||
public function deleteItems(array $keys);
|
||||
public function deleteItems(array $keys): bool;
|
||||
|
||||
/**
|
||||
* Persists a cache item immediately.
|
||||
@@ -115,7 +115,7 @@ interface CacheItemPoolInterface
|
||||
* @return bool
|
||||
* True if the item was successfully persisted. False if there was an error.
|
||||
*/
|
||||
public function save(CacheItemInterface $item);
|
||||
public function save(CacheItemInterface $item): bool;
|
||||
|
||||
/**
|
||||
* Sets a cache item to be persisted later.
|
||||
@@ -126,7 +126,7 @@ interface CacheItemPoolInterface
|
||||
* @return bool
|
||||
* False if the item could not be queued or if a commit was attempted and failed. True otherwise.
|
||||
*/
|
||||
public function saveDeferred(CacheItemInterface $item);
|
||||
public function saveDeferred(CacheItemInterface $item): bool;
|
||||
|
||||
/**
|
||||
* Persists any deferred cache items.
|
||||
@@ -134,5 +134,5 @@ interface CacheItemPoolInterface
|
||||
* @return bool
|
||||
* True if all not-yet-saved items were successfully saved or there were none. False otherwise.
|
||||
*/
|
||||
public function commit();
|
||||
public function commit(): bool;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user