class MarkdownEnvironmentFactory implements Factory (View source)

Creates a CommonMark environment for rendering user documentation.

Methods

public
object|null
create(string $service, array $params = [])

Create a CommonMark environment with the given configuration and extensions.

Details

object|null create(string $service, array $params = [])

Create a CommonMark environment with the given configuration and extensions.

Parameters

string $service

The class name of the service.

array $params

The constructor parameters.

Return Value

object|null

The created service instances.