[ Index ] |
PHP Cross Reference of phpBB-3.2.11-deutsch |
[Summary view] [Print] [Text view]
1 <?php 2 /** 3 * 4 * This file is part of the phpBB Forum Software package. 5 * 6 * @copyright (c) phpBB Limited <https://www.phpbb.com> 7 * @license GNU General Public License, version 2 (GPL-2.0) 8 * 9 * For full copyright and license information, please see 10 * the docs/CREDITS.txt file. 11 * 12 */ 13 14 namespace phpbb\routing; 15 16 use Symfony\Component\Config\Loader\LoaderResolverInterface; 17 18 /** 19 * @see Symfony\Component\Config\Loader\LoaderResolver 20 */ 21 class loader_resolver implements LoaderResolverInterface 22 { 23 /** 24 * @var \Symfony\Component\Config\Loader\LoaderInterface[] An array of LoaderInterface objects 25 */ 26 protected $loaders = []; 27 28 public function __construct($loaders = []) 29 { 30 $this->loaders = $loaders; 31 } 32 33 /** 34 * {@inheritdoc} 35 */ 36 public function resolve($resource, $type = null) 37 { 38 /** @var \Symfony\Component\Config\Loader\LoaderInterface $loader */ 39 foreach ($this->loaders as $loader) 40 { 41 if ($loader->supports($resource, $type)) 42 { 43 $loader->setResolver($this); 44 return $loader; 45 } 46 } 47 48 return false; 49 } 50 }
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Nov 11 20:33:01 2020 | Cross-referenced by PHPXref 0.7.1 |