protected function loadPluginsFromPackage($package) {
		$plugins = array();
		$settings = $this->loadSettings();
		$expectedListerClassName = '\\' . $package . '\\GizzlePlugins\\PluginList';
		if (TRUE === class_exists($expectedListerClassName)) {
			$packageSettings = (array) TRUE === isset($settings[$package]) ? $settings[$package] : array();
			/** @var PluginListInterface $lister */
			$lister = new $expectedListerClassName();
			$lister->initialize($packageSettings);
			$pluginClassNames = $lister->getPluginClassNames();
			$pluginClassNames = array_combine($pluginClassNames, array_fill(0, count($pluginClassNames), array()));
			$pluginSettings = (array) (TRUE === isset($settings[$package]) ? $settings[$package] : $pluginClassNames);
			$packagePlugins = $this->loadPluginInstances($pluginSettings);
			$plugins = array_merge($plugins, $packagePlugins);
		}
		return $plugins;
	}
protected function loadPluginsFromPackage($package) {
		$plugins = array();
		$settings = $this->loadSettings();
		$expectedListerClassName = '\\' . $package . '\\GizzlePlugins\\PluginList';
		if (TRUE === class_exists($expectedListerClassName)) {
			$packageSettings = (array) TRUE === isset($settings[$package]) ? $settings[$package] : array();
			/** @var PluginListInterface $lister */
			$lister = new $expectedListerClassName();
			$lister->initialize($packageSettings);
			$pluginClassNames = $lister->getPluginClassNames();
			$pluginClassNames = array_combine($pluginClassNames, array_fill(0, count($pluginClassNames), array()));
			$pluginSettings = (array) (TRUE === isset($settings[$package]) ? $settings[$package] : $pluginClassNames);
			$packagePlugins = $this->loadPluginInstances($pluginSettings);
			$plugins = array_merge($plugins, $packagePlugins);
		}
		return $plugins;
	}
protected function loadPluginsFromPackage ( $ package ) { $ plugins = array ( ) ; $ settings = $ this -> loadSettings ( ) ; $ expectedListerClassName = '\\' . $ package . '\\GizzlePlugins\\PluginList' ; if ( TRUE === class_exists ( $ expectedListerClassName ) ) { $ packageSettings = ( array ) TRUE === isset ( $ settings [ $ package ] ) ? $ settings [ $ package ] : array ( ) ; /** @var PluginListInterface $lister */ $ lister = new $ expectedListerClassName ( ) ; $ lister -> initialize ( $ packageSettings ) ; $ pluginClassNames = $ lister -> getPluginClassNames ( ) ; $ pluginClassNames = array_combine ( $ pluginClassNames , array_fill ( 0 , count ( $ pluginClassNames ) , array ( ) ) ) ; $ pluginSettings = ( array ) ( TRUE === isset ( $ settings [ $ package ] ) ? $ settings [ $ package ] : $ pluginClassNames ) ; $ packagePlugins = $ this -> loadPluginInstances ( $ pluginSettings ) ; $ plugins = array_merge ( $ plugins , $ packagePlugins ) ; } return $ plugins ; }
Create and initialize all plugin classes from the
package specified in the input argument. Similar
to loading a list of plugin classes, but uses the
special PluginList class from that package in order
to determine which plugins should be activated and
to deliver default settings values for those plugins.

@param string $package
@return PluginInterface[]
Create and initialize all plugin classes from the package specified in the input argument . Similar to loading a list of plugin classes but uses the special PluginList class from that package in order to determine which plugins should be activated and to deliver default settings values for those plugins .