private function validate(array $repository = [], $key) {
    if (!isset($repository['Providers']) || empty($repository['Providers'])) {
        throw new \Nuki\Exceptions\Base(vsprintf('%1$s does not have any providers', [$key]));
    }

    if (!class_exists($repository['Location'])) {
        throw new \Nuki\Exceptions\Base(vsprintf('%1$s cannot be found', [$repository['Location']]));
    }
  }
private function validate(array $repository = [], $key) {
    if (!isset($repository['Providers']) || empty($repository['Providers'])) {
        throw new \Nuki\Exceptions\Base(vsprintf('%1$s does not have any providers', [$key]));
    }

    if (!class_exists($repository['Location'])) {
        throw new \Nuki\Exceptions\Base(vsprintf('%1$s cannot be found', [$repository['Location']]));
    }
  }
private function validate ( array $ repository = [ ] , $ key ) { if ( ! isset ( $ repository [ 'Providers' ] ) || empty ( $ repository [ 'Providers' ] ) ) { throw new \ Nuki \ Exceptions \ Base ( vsprintf ( '%1$s does not have any providers' , [ $ key ] ) ) ; } if ( ! class_exists ( $ repository [ 'Location' ] ) ) { throw new \ Nuki \ Exceptions \ Base ( vsprintf ( '%1$s cannot be found' , [ $ repository [ 'Location' ] ] ) ) ; } }
Validate repository info

@param array $repository
@throws \Nuki\Exceptions\Base
Validate repository info