ViewFinderInterface.php 1.4KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. namespace Illuminate\View;
  3. interface ViewFinderInterface
  4. {
  5. /**
  6. * Hint path delimiter value.
  7. *
  8. * @var string
  9. */
  10. const HINT_PATH_DELIMITER = '::';
  11. /**
  12. * Get the fully qualified location of the view.
  13. *
  14. * @param string $view
  15. * @return string
  16. */
  17. public function find($view);
  18. /**
  19. * Add a location to the finder.
  20. *
  21. * @param string $location
  22. * @return void
  23. */
  24. public function addLocation($location);
  25. /**
  26. * Add a namespace hint to the finder.
  27. *
  28. * @param string $namespace
  29. * @param string|array $hints
  30. * @return void
  31. */
  32. public function addNamespace($namespace, $hints);
  33. /**
  34. * Prepend a namespace hint to the finder.
  35. *
  36. * @param string $namespace
  37. * @param string|array $hints
  38. * @return void
  39. */
  40. public function prependNamespace($namespace, $hints);
  41. /**
  42. * Replace the namespace hints for the given namespace.
  43. *
  44. * @param string $namespace
  45. * @param string|array $hints
  46. * @return $this
  47. */
  48. public function replaceNamespace($namespace, $hints);
  49. /**
  50. * Add a valid view extension to the finder.
  51. *
  52. * @param string $extension
  53. * @return void
  54. */
  55. public function addExtension($extension);
  56. /**
  57. * Flush the cache of located views.
  58. *
  59. * @return void
  60. */
  61. public function flush();
  62. }