[ Index ]

PHP Cross Reference of phpBB-3.3.2-deutsch

title

Body

[close]

/phpbb/routing/ -> file_locator.php (source)

   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 phpbb\filesystem\filesystem_interface;
  17  use Symfony\Component\Config\FileLocator;
  18  
  19  class file_locator extends FileLocator
  20  {
  21  	public function __construct(filesystem_interface $filesystem, $paths = [])
  22      {
  23          $paths = (array) $paths;
  24          $absolute_paths = [];
  25  
  26          foreach ($paths as $path)
  27          {
  28              $absolute_paths[] = $filesystem->realpath($path);
  29          }
  30  
  31          parent::__construct($absolute_paths);
  32      }
  33  }


Generated: Wed Nov 11 20:28:18 2020 Cross-referenced by PHPXref 0.7.1