composer package updates
[openemr.git] / vendor / symfony / config / Loader / LoaderInterface.php
blobdfca9dd27bf0dfe7c0af2edbd3d90d13d1d86167
1 <?php
3 /*
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;
14 /**
15 * LoaderInterface is the interface implemented by all loader classes.
17 * @author Fabien Potencier <fabien@symfony.com>
19 interface LoaderInterface
21 /**
22 * Loads a resource.
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);
31 /**
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);
41 /**
42 * Gets the loader resolver.
44 * @return LoaderResolverInterface A LoaderResolverInterface instance
46 public function getResolver();
48 /**
49 * Sets the loader resolver.
51 public function setResolver(LoaderResolverInterface $resolver);