mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-12 11:44:08 +02:00
[ticket/12268] Move class out of extension namespace and rename it
PHPBB3-12268
This commit is contained in:
@@ -476,7 +476,7 @@ class finder
|
||||
$directory_pattern = '#' . $directory_pattern . '#';
|
||||
|
||||
$iterator = new \RecursiveIteratorIterator(
|
||||
new \phpbb\extension\recursive_filter_iterator(
|
||||
new \phpbb\recursive_dot_prefix_filter_iterator(
|
||||
new \RecursiveDirectoryIterator(
|
||||
$path,
|
||||
\FilesystemIterator::SKIP_DOTS
|
||||
|
@@ -1,27 +0,0 @@
|
||||
<?php
|
||||
/**
|
||||
*
|
||||
* @package extension
|
||||
* @copyright (c) 2014 phpBB Group
|
||||
* @license http://opensource.org/licenses/gpl-2.0.php GNU General Public License v2
|
||||
*
|
||||
*/
|
||||
|
||||
namespace phpbb\extension;
|
||||
|
||||
/**
|
||||
* Class recursive_filter_iterator
|
||||
*
|
||||
* This filter ignores directories starting with a dot.
|
||||
* When searching for php classes and template files of extensions
|
||||
* we don't need to look inside these directories.
|
||||
*
|
||||
* @package phpbb\extension
|
||||
*/
|
||||
class recursive_filter_iterator extends \RecursiveFilterIterator
|
||||
{
|
||||
public function accept()
|
||||
{
|
||||
return !$this->current()->isDir() || substr($this->current()->getFilename(), 0, 1) !== '.';
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user