protected function getPluginParser($pluginName)
	{
		// Cache a new instance of this plugin's parser if there isn't one already
		if (!isset($this->pluginParsers[$pluginName]))
		{
			$pluginConfig = $this->pluginsConfig[$pluginName];
			$className = (isset($pluginConfig['className']))
			           ? $pluginConfig['className']
			           : 's9e\\TextFormatter\\Plugins\\' . $pluginName . '\\Parser';

			// Register the parser as a callback
			$this->pluginParsers[$pluginName] = [new $className($this, $pluginConfig), 'parse'];
		}

		return $this->pluginParsers[$pluginName];
	}
protected function getPluginParser($pluginName)
	{
		// Cache a new instance of this plugin's parser if there isn't one already
		if (!isset($this->pluginParsers[$pluginName]))
		{
			$pluginConfig = $this->pluginsConfig[$pluginName];
			$className = (isset($pluginConfig['className']))
			           ? $pluginConfig['className']
			           : 's9e\\TextFormatter\\Plugins\\' . $pluginName . '\\Parser';

			// Register the parser as a callback
			$this->pluginParsers[$pluginName] = [new $className($this, $pluginConfig), 'parse'];
		}

		return $this->pluginParsers[$pluginName];
	}
protected function getPluginParser ( $ pluginName ) { // Cache a new instance of this plugin's parser if there isn't one already if ( ! isset ( $ this -> pluginParsers [ $ pluginName ] ) ) { $ pluginConfig = $ this -> pluginsConfig [ $ pluginName ] ; $ className = ( isset ( $ pluginConfig [ 'className' ] ) ) ? $ pluginConfig [ 'className' ] : 's9e\\TextFormatter\\Plugins\\' . $ pluginName . '\\Parser' ; // Register the parser as a callback $ this -> pluginParsers [ $ pluginName ] = [ new $ className ( $ this , $ pluginConfig ) , 'parse' ] ; } return $ this -> pluginParsers [ $ pluginName ] ; }
Get the cached callback for given plugin's parser

@param  string $pluginName Plugin's name
@return callable
Get the cached callback for given plugin s parser