Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Public Member Functions | |
__construct (ComponentRegistrarInterface $registrar, Filesystem\Directory\ReadFactory $readFactory) | |
collectFiles ($componentType, $pattern) | |
collectFilesWithContext ($componentType, $pattern) | |
Class for searching files across all locations of certain component type
Definition at line 13 of file DirSearch.php.
__construct | ( | ComponentRegistrarInterface | $registrar, |
Filesystem\Directory\ReadFactory | $readFactory | ||
) |
Constructor
ComponentRegistrarInterface | $registrar | |
Filesystem\Directory\ReadFactory | $readFactory |
Definition at line 35 of file DirSearch.php.
collectFiles | ( | $componentType, | |
$pattern | |||
) |
Search for files in each component by pattern, returns absolute paths
string | $componentType | |
string | $pattern |
Definition at line 48 of file DirSearch.php.
collectFilesWithContext | ( | $componentType, | |
$pattern | |||
) |
Search for files in each component by pattern, returns file objects with absolute file paths
string | $componentType | |
string | $pattern |
Definition at line 60 of file DirSearch.php.