mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-05 15:16:16 +02:00
[ticket/16955] Update namespace for iterators to finder
PHPBB3-16955
This commit is contained in:
parent
4d6dbfb745
commit
a366eb7f6c
@ -220,7 +220,7 @@ class acp_language
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$iterator = new \phpbb\iterator\recursive_path_iterator($this->phpbb_root_path . 'language/' . $this->config['default_lang'] . '/');
|
$iterator = new \phpbb\finder\recursive_path_iterator($this->phpbb_root_path . 'language/' . $this->config['default_lang'] . '/');
|
||||||
}
|
}
|
||||||
catch (\Exception $e)
|
catch (\Exception $e)
|
||||||
{
|
{
|
||||||
|
@ -646,7 +646,7 @@ function phpbb_email_hash($email)
|
|||||||
*/
|
*/
|
||||||
function phpbb_load_extensions_autoloaders($phpbb_root_path)
|
function phpbb_load_extensions_autoloaders($phpbb_root_path)
|
||||||
{
|
{
|
||||||
$iterator = new \phpbb\iterator\recursive_path_iterator(
|
$iterator = new \phpbb\finder\recursive_path_iterator(
|
||||||
$phpbb_root_path . 'ext/',
|
$phpbb_root_path . 'ext/',
|
||||||
\RecursiveIteratorIterator::SELF_FIRST,
|
\RecursiveIteratorIterator::SELF_FIRST,
|
||||||
\FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS
|
\FilesystemIterator::SKIP_DOTS | \FilesystemIterator::FOLLOW_SYMLINKS
|
||||||
|
@ -659,7 +659,7 @@ class md_exporter
|
|||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
$iterator = new \phpbb\iterator\recursive_path_iterator(
|
$iterator = new \phpbb\finder\recursive_path_iterator(
|
||||||
$dir,
|
$dir,
|
||||||
\RecursiveIteratorIterator::SELF_FIRST
|
\RecursiveIteratorIterator::SELF_FIRST
|
||||||
);
|
);
|
||||||
|
@ -380,7 +380,7 @@ class manager
|
|||||||
return $available;
|
return $available;
|
||||||
}
|
}
|
||||||
|
|
||||||
$iterator = new \phpbb\iterator\recursive_path_iterator(
|
$iterator = new \phpbb\finder\recursive_path_iterator(
|
||||||
$this->phpbb_root_path . 'ext/',
|
$this->phpbb_root_path . 'ext/',
|
||||||
\RecursiveIteratorIterator::SELF_FIRST,
|
\RecursiveIteratorIterator::SELF_FIRST,
|
||||||
\FilesystemIterator::NEW_CURRENT_AND_KEY | \FilesystemIterator::FOLLOW_SYMLINKS
|
\FilesystemIterator::NEW_CURRENT_AND_KEY | \FilesystemIterator::FOLLOW_SYMLINKS
|
||||||
|
@ -486,7 +486,7 @@ class finder
|
|||||||
|
|
||||||
if (is_dir($path))
|
if (is_dir($path))
|
||||||
{
|
{
|
||||||
$iterator = new \phpbb\iterator\recursive_path_iterator(
|
$iterator = new \phpbb\finder\recursive_path_iterator(
|
||||||
$path,
|
$path,
|
||||||
\RecursiveIteratorIterator::SELF_FIRST
|
\RecursiveIteratorIterator::SELF_FIRST
|
||||||
);
|
);
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
namespace phpbb\iterator;
|
namespace phpbb\finder;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Class recursive_dot_prefix_filter_iterator
|
* Class recursive_dot_prefix_filter_iterator
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
declare(strict_types=1);
|
declare(strict_types=1);
|
||||||
|
|
||||||
namespace phpbb\iterator;
|
namespace phpbb\finder;
|
||||||
|
|
||||||
class recursive_path_iterator extends \RecursiveIteratorIterator
|
class recursive_path_iterator extends \RecursiveIteratorIterator
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user