src/Registry/Adapter/FileSystemAdapter.php
public function getAllHashes(string $namespace): array
    {
        $directory = implode(DIRECTORY_SEPARATOR, [
            $this->directory,
            $namespace,
        ]);

        $result = [];
        if (is_dir($directory)) {
            $directoryIterator = new RecursiveDirectoryIterator(
                $directory,
                RecursiveDirectoryIterator::SKIP_DOTS
            );

            foreach (new RecursiveIteratorIterator($directoryIterator) as $file) {
                /* @var SplFileInfo $file */
                $result[] = $file->getFilename();
            }
        }
        return $result;
    }
public function getAllHashes(string $namespace): array
    {
        $directory = implode(DIRECTORY_SEPARATOR, [
            $this->directory,
            $namespace,
        ]);

        $result = [];
        if (is_dir($directory)) {
            $directoryIterator = new RecursiveDirectoryIterator(
                $directory,
                RecursiveDirectoryIterator::SKIP_DOTS
            );

            foreach (new RecursiveIteratorIterator($directoryIterator) as $file) {
                /* @var SplFileInfo $file */
                $result[] = $file->getFilename();
            }
        }
        return $result;
    }
public function getAllHashes ( string $ namespace ) : array { $ directory = implode ( DIRECTORY_SEPARATOR , [ $ this -> directory , $ namespace , ] ) ; $ result = [ ] ; if ( is_dir ( $ directory ) ) { $ directoryIterator = new RecursiveDirectoryIterator ( $ directory , RecursiveDirectoryIterator :: SKIP_DOTS ) ; foreach ( new RecursiveIteratorIterator ( $ directoryIterator ) as $ file ) { /* @var SplFileInfo $file */ $ result [ ] = $ file -> getFilename ( ) ; } } return $ result ; }
Returns all hashes currently known to the adapter.
@param string $namespace
@return array|string[]
Returns all hashes currently known to the adapter .