Classes/Lightwerk/SurfCaptain/Domain/Repository/Preset/AbstractRepository.php
public function findByRepositoryUrl($repositoryUrl)
    {
        $presets = $this->loadPresets();
        $repositoryPresets = [];
        foreach ($presets as $key => $preset) {
            foreach ($preset['applications'] as $application) {
                if (!empty($application['options']['repositoryUrl']) && $repositoryUrl === $application['options']['repositoryUrl']) {
                    $repositoryPresets[$key] = $preset;
                }
            }
        }
        return $repositoryPresets;
    }
public function findByRepositoryUrl($repositoryUrl)
    {
        $presets = $this->loadPresets();
        $repositoryPresets = [];
        foreach ($presets as $key => $preset) {
            foreach ($preset['applications'] as $application) {
                if (!empty($application['options']['repositoryUrl']) && $repositoryUrl === $application['options']['repositoryUrl']) {
                    $repositoryPresets[$key] = $preset;
                }
            }
        }
        return $repositoryPresets;
    }
public function findByRepositoryUrl ( $ repositoryUrl ) { $ presets = $ this -> loadPresets ( ) ; $ repositoryPresets = [ ] ; foreach ( $ presets as $ key => $ preset ) { foreach ( $ preset [ 'applications' ] as $ application ) { if ( ! empty ( $ application [ 'options' ] [ 'repositoryUrl' ] ) && $ repositoryUrl === $ application [ 'options' ] [ 'repositoryUrl' ] ) { $ repositoryPresets [ $ key ] = $ preset ; } } } return $ repositoryPresets ; }
Find presets matching the given repositoryUrl.

@param string $repositoryUrl
@return array $presets
Find presets matching the given repositoryUrl .