protected function initializeExtensions()
{
// Only initialize them once
if ($this->extensionsInitialized) {
return;
}
$this->extensionsInitialized = true;
// Initialize all the registered extensions
foreach ($this->extensions as $extension) {
$this->initializeExtension($extension);
}
// Lastly, let's build a regex which matches non-inline characters
// This will enable a huge performance boost with inline parsing
$this->buildInlineParserCharacterRegex();
}