Classes/Lightwerk/SurfCaptain/Domain/Repository/Preset/AbstractRepository.php
public function findByIdentifier($identifier)
    {
        $presets = $this->loadPresets();
        if (empty($presets[$identifier])) {
            throw new Exception('Could not find preset', 1410549868);
        }
        return $presets[$identifier];
    }
public function findByIdentifier($identifier)
    {
        $presets = $this->loadPresets();
        if (empty($presets[$identifier])) {
            throw new Exception('Could not find preset', 1410549868);
        }
        return $presets[$identifier];
    }
public function findByIdentifier ( $ identifier ) { $ presets = $ this -> loadPresets ( ) ; if ( empty ( $ presets [ $ identifier ] ) ) { throw new Exception ( 'Could not find preset' , 1410549868 ) ; } return $ presets [ $ identifier ] ; }
Finds a preset matching the given identifier.

@param string $identifier
@return array $configuration
@throws Exception
Finds a preset matching the given identifier .