protected static function getLocationProviders(Plugin $plugin)
    {
        $locationProviders = $plugin->findMultipleComponents('LocationProvider', 'Piwik\\Plugins\\UserCountry\\LocationProvider');
        $instances  = [];

        foreach ($locationProviders as $locationProvider) {
            $instances[] = new $locationProvider();
        }

        return $instances;
    }
protected static function getLocationProviders(Plugin $plugin)
    {
        $locationProviders = $plugin->findMultipleComponents('LocationProvider', 'Piwik\\Plugins\\UserCountry\\LocationProvider');
        $instances  = [];

        foreach ($locationProviders as $locationProvider) {
            $instances[] = new $locationProvider();
        }

        return $instances;
    }
protected static function getLocationProviders ( Plugin $ plugin ) { $ locationProviders = $ plugin -> findMultipleComponents ( 'LocationProvider' , 'Piwik\\Plugins\\UserCountry\\LocationProvider' ) ; $ instances = [ ] ; foreach ( $ locationProviders as $ locationProvider ) { $ instances [ ] = new $ locationProvider ( ) ; } return $ instances ; }
Get all lo that are defined by the given plugin.

@param Plugin $plugin
@return LocationProvider[]
Get all lo that are defined by the given plugin .