ParseFileHandler
Table of Contents
-
$directives
: IteratorAggregate<string|int, Directive>
-
$eventManager
: EventManager
-
$logger
: LoggerInterface
-
$metas
: Metas
-
$references
: IteratorAggregate<string|int, Reference>
-
$renderer
: Renderer
-
__construct()
: mixed
-
handle()
: void
-
buildDocumentUrl()
: string
-
buildPathOnFileSystem()
: string
-
getFileContents()
: string
-
parseMarkdown()
: DocumentNode
-
parseRestructuredText()
: DocumentNode
$directives
private
IteratorAggregate<string|int, Directive>
$directives
$eventManager
private
EventManager
$eventManager
$logger
private
LoggerInterface
$logger
private
Metas
$metas
$references
private
IteratorAggregate<string|int, Reference>
$references
$renderer
private
Renderer
$renderer
__construct()
public
__construct(Metas $metas, Renderer $renderer, LoggerInterface $logger, EventManager $eventManager, IteratorAggregate<string|int, Directive> $directives, IteratorAggregate<string|int, Reference> $references) : mixed
Parameters
-
$metas
: Metas
-
-
$renderer
: Renderer
-
-
$logger
: LoggerInterface
-
-
$eventManager
: EventManager
-
-
$directives
: IteratorAggregate<string|int, Directive>
-
-
$references
: IteratorAggregate<string|int, Reference>
-
Return values
mixed
—
handle()
public
handle(ParseFileCommand $command) : void
Parameters
-
$command
: ParseFileCommand
-
Return values
void
—
buildDocumentUrl()
private
buildDocumentUrl(Environment $environment, string $extension) : string
Parameters
-
$environment
: Environment
-
-
$extension
: string
-
Return values
string
—
buildPathOnFileSystem()
private
buildPathOnFileSystem(string $file, string $currentDirectory, string $extension) : string
Parameters
-
$file
: string
-
-
$currentDirectory
: string
-
-
$extension
: string
-
Return values
string
—
getFileContents()
private
getFileContents(Environment $environment, string $file) : string
Parameters
-
$environment
: Environment
-
-
$file
: string
-
Return values
string
—
parseMarkdown()
private
parseMarkdown(Configuration $configuration, Environment $environment, string $fileAbsolutePath) : DocumentNode
Parameters
-
$configuration
: Configuration
-
-
$environment
: Environment
-
-
$fileAbsolutePath
: string
-
Return values
DocumentNode
—
parseRestructuredText()
private
parseRestructuredText(Configuration $configuration, Environment $environment, string $fileAbsolutePath) : DocumentNode
Parameters
-
$configuration
: Configuration
-
-
$environment
: Environment
-
-
$fileAbsolutePath
: string
-
Return values
DocumentNode
—