public function addTokenParser(TokenParserInterface $parser) : void { if ($this->initialized) { throw new \LogicException('Unable to add a token parser as extensions have already been initialized.'); } $this->staging ->addTokenParser($parser); }