4 * This file is part of the Symfony package.
6 * (c) Fabien Potencier <fabien@symfony.com>
8 * For the full copyright and license information, please view the LICENSE
9 * file that was distributed with this source code.
12 namespace Symfony\Component\Config\Loader
;
15 * LoaderInterface is the interface implemented by all loader classes.
17 * @author Fabien Potencier <fabien@symfony.com>
19 interface LoaderInterface
24 * @param mixed $resource The resource
25 * @param string|null $type The resource type or null if unknown
27 * @throws \Exception If something went wrong
29 public function load($resource, $type = null);
32 * Returns whether this class supports the given resource.
34 * @param mixed $resource A resource
35 * @param string|null $type The resource type or null if unknown
37 * @return bool True if this class supports the given resource, false otherwise
39 public function supports($resource, $type = null);
42 * Gets the loader resolver.
44 * @return LoaderResolverInterface A LoaderResolverInterface instance
46 public function getResolver();
49 * Sets the loader resolver.
51 public function setResolver(LoaderResolverInterface
$resolver);