ParseDirectoryHandler
in package
Table of Contents
- $commandBus : CommandBus
- $scanner : FileCollector
- __construct() : mixed
- handle() : void
- guardThatAnIndexFileExists() : void
Properties
$commandBus
private
CommandBus
$commandBus
$scanner
private
FileCollector
$scanner
Methods
__construct()
public
__construct(FileCollector $scanner, CommandBus $commandBus) : mixed
Parameters
- $scanner : FileCollector
- $commandBus : CommandBus
Return values
mixed —handle()
public
handle(ParseDirectoryCommand $command) : void
Parameters
- $command : ParseDirectoryCommand
Return values
void —guardThatAnIndexFileExists()
private
guardThatAnIndexFileExists(FilesystemInterface $filesystem, string $directory, Configuration $configuration) : void
Parameters
- $filesystem : FilesystemInterface
- $directory : string
- $configuration : Configuration