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