AbstractFileExtractor
abstract class AbstractFileExtractor
Base class used by classes that extract translation messages from files.
Methods
| array | extractFiles(string|array $resource) | |
| bool | isFile(string $file) | |
| bool | canBeExtracted(string $file) | |
| array | extractFromDirectory(string|array $resource) |
Details
protected array extractFiles(string|array $resource)
Parameters
| string|array | $resource | Files, a file or a directory |
Return Value
| array |
protected bool isFile(string $file)
Parameters
| string | $file |
Return Value
| bool |
Exceptions
| InvalidArgumentException |
abstract protected bool canBeExtracted(string $file)
Parameters
| string | $file |
Return Value
| bool |
abstract protected array extractFromDirectory(string|array $resource)
Parameters
| string|array | $resource | Files, a file or a directory |
Return Value
| array | files to be extracted |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Translation/Extractor/AbstractFileExtractor.html