public function load($pluginName, array $overrideProps = [])
	{
		// Validate the plugin name / class
		$pluginName = $this->normalizeKey($pluginName);
		$className  = 's9e\\TextFormatter\\Plugins\\' . $pluginName . '\\Configurator';

		if (!class_exists($className))
		{
			throw new RuntimeException("Class '" . $className . "' does not exist");
		}

		// Create the plugin
		$plugin = new $className($this->configurator, $overrideProps);

		// Save it
		$this->set($pluginName, $plugin);

		// Return it
		return $plugin;
	}
public function load($pluginName, array $overrideProps = [])
	{
		// Validate the plugin name / class
		$pluginName = $this->normalizeKey($pluginName);
		$className  = 's9e\\TextFormatter\\Plugins\\' . $pluginName . '\\Configurator';

		if (!class_exists($className))
		{
			throw new RuntimeException("Class '" . $className . "' does not exist");
		}

		// Create the plugin
		$plugin = new $className($this->configurator, $overrideProps);

		// Save it
		$this->set($pluginName, $plugin);

		// Return it
		return $plugin;
	}
public function load ( $ pluginName , array $ overrideProps = [ ] ) { // Validate the plugin name / class $ pluginName = $ this -> normalizeKey ( $ pluginName ) ; $ className = 's9e\\TextFormatter\\Plugins\\' . $ pluginName . '\\Configurator' ; if ( ! class_exists ( $ className ) ) { throw new RuntimeException ( "Class '" . $ className . "' does not exist" ) ; } // Create the plugin $ plugin = new $ className ( $ this -> configurator , $ overrideProps ) ; // Save it $ this -> set ( $ pluginName , $ plugin ) ; // Return it return $ plugin ; }
Load a default plugin

@param  string $pluginName    Name of the plugin
@param  array  $overrideProps Properties of the plugin will be overwritten with those
@return ConfiguratorBase
Load a default plugin