ParseDirectoryHandler
in package
FinalYes
Table of Contents
Constants
- INDEX_FILE_NAMES = ['index', 'Index']
Properties
- $commandBus : CommandBus
- $eventDispatcher : EventDispatcherInterface
- $fileCollector : FileCollector
Methods
- __construct() : mixed
- handle() : array<string|int, DocumentNode>
- getDirectoryIndexFile() : string
Constants
INDEX_FILE_NAMES
private
mixed
INDEX_FILE_NAMES
= ['index', 'Index']
Properties
$commandBus read-only
private
CommandBus
$commandBus
$eventDispatcher read-only
private
EventDispatcherInterface
$eventDispatcher
$fileCollector read-only
private
FileCollector
$fileCollector
Methods
__construct()
public
__construct(FileCollector $fileCollector, CommandBus $commandBus, EventDispatcherInterface $eventDispatcher) : mixed
Parameters
- $fileCollector : FileCollector
- $commandBus : CommandBus
- $eventDispatcher : EventDispatcherInterface
handle()
public
handle(ParseDirectoryCommand $command) : array<string|int, DocumentNode>
Parameters
- $command : ParseDirectoryCommand
Return values
array<string|int, DocumentNode>getDirectoryIndexFile()
private
getDirectoryIndexFile(FilesystemInterface $filesystem, string $directory, string $sourceFormat) : string
Parameters
- $filesystem : FilesystemInterface
- $directory : string
- $sourceFormat : string