1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-13 12:14:06 +02:00

[ticket/15253] Use storage helper methods instead of filesystem methods

PHPBB3-15253
This commit is contained in:
Rubén Calvo
2017-06-26 15:49:31 +02:00
parent 21c9b0eeae
commit ecb79539f4
62 changed files with 109 additions and 598 deletions

View File

@@ -13,19 +13,18 @@
namespace phpbb\routing;
use phpbb\filesystem\filesystem_interface;
use Symfony\Component\Config\FileLocator;
class file_locator extends FileLocator
{
public function __construct(filesystem_interface $filesystem, $paths = [])
public function __construct($paths = [])
{
$paths = (array) $paths;
$absolute_paths = [];
foreach ($paths as $path)
{
$absolute_paths[] = $filesystem->realpath($path);
$absolute_paths[] = \phpbb\storage\helper::realpath($path);
}
parent::__construct($absolute_paths);