LoaderResolverInterface.php 816 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. namespace Symfony\Components\DependencyInjection\Loader;
  3. /*
  4. * This file is part of the Symfony framework.
  5. *
  6. * (c) Fabien Potencier <fabien.potencier@symfony-project.com>
  7. *
  8. * This source file is subject to the MIT license that is bundled
  9. * with this source code in the file LICENSE.
  10. */
  11. /**
  12. * LoaderResolverInterface selects a loader for a given resource.
  13. *
  14. * @package Symfony
  15. * @subpackage Components_DependencyInjection
  16. * @author Fabien Potencier <fabien.potencier@symfony-project.com>
  17. */
  18. interface LoaderResolverInterface
  19. {
  20. /**
  21. * Returns a loader able to load the resource.
  22. *
  23. * @param mixed $resource A resource
  24. *
  25. * @return Symfony\Components\DependencyInjection\Loader\LoaderInterface A LoaderInterface instance
  26. */
  27. function resolve($resource);
  28. }