X-Git-Url: https://reisub.nsupdate.info/git/?p=friendica-addons.git%2F.git;a=blobdiff_plain;f=advancedcontentfilter%2Fvendor%2Fsymfony%2Fcache-contracts%2FCallbackInterface.php;fp=advancedcontentfilter%2Fvendor%2Fsymfony%2Fcache-contracts%2FCallbackInterface.php;h=7dae2aac373606977dc7291843c8b67faf99cfc9;hp=0000000000000000000000000000000000000000;hb=569931986d6d704ac7e0264d6e5bb24df11a5b5f;hpb=11cc3594341cc67d6c1da1456ea77e7967de4b78 diff --git a/advancedcontentfilter/vendor/symfony/cache-contracts/CallbackInterface.php b/advancedcontentfilter/vendor/symfony/cache-contracts/CallbackInterface.php new file mode 100644 index 00000000..7dae2aac --- /dev/null +++ b/advancedcontentfilter/vendor/symfony/cache-contracts/CallbackInterface.php @@ -0,0 +1,30 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Contracts\Cache; + +use Psr\Cache\CacheItemInterface; + +/** + * Computes and returns the cached value of an item. + * + * @author Nicolas Grekas + */ +interface CallbackInterface +{ + /** + * @param CacheItemInterface|ItemInterface $item The item to compute the value for + * @param bool &$save Should be set to false when the value should not be saved in the pool + * + * @return mixed The computed value for the passed item + */ + public function __invoke(CacheItemInterface $item, bool &$save); +}