vendor/liip/imagine-bundle/Imagine/Cache/SignerInterface.php line 24

Open in your IDE?
  1. <?php
  2. /*
  3. * This file is part of the `liip/LiipImagineBundle` project.
  4. *
  5. * (c) https://github.com/liip/LiipImagineBundle/graphs/contributors
  6. *
  7. * For the full copyright and license information, please view the LICENSE.md
  8. * file that was distributed with this source code.
  9. */
  10. namespace Liip\ImagineBundle\Imagine\Cache;
  11. interface SignerInterface
  12. {
  13. /**
  14. * Return the hash for path and runtime config.
  15. *
  16. * @param string $path
  17. * @param array $runtimeConfig
  18. *
  19. * @return string
  20. */
  21. public function sign($path, array $runtimeConfig = null);
  22. /**
  23. * Check hash is correct.
  24. *
  25. * @param string $hash
  26. * @param string $path
  27. * @param array $runtimeConfig
  28. *
  29. * @return bool
  30. */
  31. public function check($hash, $path, array $runtimeConfig = null);
  32. }