public function addBlockParser(BlockParserInterface $parser) { $this->assertUninitialized('Failed to add block parser.'); $this->getMiscExtension()->addBlockParser($parser); return $this; }