class
League
/
CommonMark
/
Environment
/
Environment
You are viewing an older version of the documentation. For the latest, please visit 2.4 documentation.
final
Environment
Implements
- EnvironmentInterface
- EnvironmentBuilderInterface
- Psr\...\ListenerProviderInterface
Properties
private
$extensions ExtensionInterface[]
Default: []
private
$uninitializedExtensions ExtensionInterface[]
Default: []
private
$extensionsInitialized
Default: false
private
$blockStartParsers PrioritizedList<\BlockStartParserInterface>
Default: null
private
$inlineParsers PrioritizedList<\InlineParserInterface>
Default: null
private
$delimiterProcessors
Default: null
private
$renderersByClass
array>
Default: []
private
$listenerData PrioritizedList<\ListenerData>
Default: null
private
$eventDispatcher
Default: null
private
$config
Default: null
private
$slugNormalizer
Default: null
Methods
public
__construct ( array $config ) : void
Parameters
-
$config
array
public
getConfiguration ( ) : void
deprecated
public
mergeConfig ( array $config ) : void
Parameters
-
$config
array
public
addBlockStartParser ( BlockStartParserInterface $parser , int $priority ) : void
public
addInlineParser ( InlineParserInterface $parser , int $priority ) : void
public
addDelimiterProcessor ( DelimiterProcessorInterface $processor ) : void
public
addRenderer ( string $nodeClass , NodeRendererInterface $renderer , int $priority ) : void
public
getBlockStartParsers ( ) : void
{@inheritDoc}
public
getDelimiterProcessors ( ) : void
public
getRenderersForClass ( string $nodeClass ) : void
{@inheritDoc}
public
getExtensions ( ) : void
{@inheritDoc}
private
initializeExtensions ( ) : void
private
injectEnvironmentAndConfigurationIfNeeded ( object $object ) : void
deprecated
public
static
createCommonMarkEnvironment ( array $config ) : void
Parameters
-
$config
array
deprecated
public
static
createGFMEnvironment ( array $config ) : void
Parameters
-
$config
array
public
addEventListener ( string $eventClass , callable $listener , int $priority ) : void
public
dispatch ( object $event ) : void
public
setEventDispatcher ( Psr\...\EventDispatcherInterface $dispatcher ) : void
public
getListenersForEvent
(
object
$event
)
:
iterable
{@inheritDoc}
public
getInlineParsers ( ) : iterable<\InlineParserInterface>
public
getSlugNormalizer ( ) : void
private
assertUninitialized ( string $message ) : void
public
static