Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Glob.php
Go to the documentation of this file.
1 <?php
7 
8 use Zend\Stdlib\Glob as ZendGlob;
9 use Zend\Stdlib\Exception\RuntimeException as ZendRuntimeException;
10 
14 class Glob extends ZendGlob
15 {
24  public static function glob($pattern, $flags = 0, $forceFallback = false)
25  {
26  try {
27  $result = ZendGlob::glob($pattern, $flags, $forceFallback);
28  } catch (ZendRuntimeException $e) {
29  $result = [];
30  }
31  return $result;
32  }
33 }
$pattern
Definition: website.php:22
static glob($pattern, $flags=0, $forceFallback=false)
Definition: Glob.php:24