vendor/symfony/config/Loader/LoaderInterface.php line 37

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\Config\Loader;
  11. /**
  12.  * LoaderInterface is the interface implemented by all loader classes.
  13.  *
  14.  * @author Fabien Potencier <fabien@symfony.com>
  15.  */
  16. interface LoaderInterface
  17. {
  18.     /**
  19.      * Loads a resource.
  20.      *
  21.      * @return mixed
  22.      *
  23.      * @throws \Exception If something went wrong
  24.      */
  25.     public function load(mixed $resourcestring $type null);
  26.     /**
  27.      * Returns whether this class supports the given resource.
  28.      *
  29.      * @param mixed $resource A resource
  30.      *
  31.      * @return bool
  32.      */
  33.     public function supports(mixed $resourcestring $type null);
  34.     /**
  35.      * Gets the loader resolver.
  36.      *
  37.      * @return LoaderResolverInterface
  38.      */
  39.     public function getResolver();
  40.     /**
  41.      * Sets the loader resolver.
  42.      */
  43.     public function setResolver(LoaderResolverInterface $resolver);
  44. }