public function getPluginConfiguration($pluginPath)
    {
        $yaml = new Parser();
        $specificationFilePath = $pluginPath . '/plugin.yml';
        if (!file_exists($specificationFilePath)) {
            return [];
        }

        $parsedConfiguration = $yaml->parse(file_get_contents($specificationFilePath));
        if (!is_array($parsedConfiguration)) {
            return [];
        }

        $processor = new Processor();
        $pluginConfiguration = $processor
            ->processConfiguration(
                new PluginConfigurationTree(),
                $parsedConfiguration
            );

        return $pluginConfiguration;
    }
public function getPluginConfiguration($pluginPath)
    {
        $yaml = new Parser();
        $specificationFilePath = $pluginPath . '/plugin.yml';
        if (!file_exists($specificationFilePath)) {
            return [];
        }

        $parsedConfiguration = $yaml->parse(file_get_contents($specificationFilePath));
        if (!is_array($parsedConfiguration)) {
            return [];
        }

        $processor = new Processor();
        $pluginConfiguration = $processor
            ->processConfiguration(
                new PluginConfigurationTree(),
                $parsedConfiguration
            );

        return $pluginConfiguration;
    }
public function getPluginConfiguration ( $ pluginPath ) { $ yaml = new Parser ( ) ; $ specificationFilePath = $ pluginPath . '/plugin.yml' ; if ( ! file_exists ( $ specificationFilePath ) ) { return [ ] ; } $ parsedConfiguration = $ yaml -> parse ( file_get_contents ( $ specificationFilePath ) ) ; if ( ! is_array ( $ parsedConfiguration ) ) { return [ ] ; } $ processor = new Processor ( ) ; $ pluginConfiguration = $ processor -> processConfiguration ( new PluginConfigurationTree ( ) , $ parsedConfiguration ) ; return $ pluginConfiguration ; }
Given a Bundle path, return a new PluginConfiguration instance.

@param string $pluginPath Plugin Path

@return array Plugin configuration
Given a Bundle path return a new PluginConfiguration instance .