lib/Elastica/Snapshot.php
public function getRepository($name)
    {
        try {
            $response = $this->request($name);
        } catch (ResponseException $e) {
            if (404 == $e->getResponse()->getStatus()) {
                throw new NotFoundException("Repository '".$name."' does not exist.");
            }
            throw $e;
        }
        $data = $response->getData();

        return $data[$name];
    }
public function getRepository($name)
    {
        try {
            $response = $this->request($name);
        } catch (ResponseException $e) {
            if (404 == $e->getResponse()->getStatus()) {
                throw new NotFoundException("Repository '".$name."' does not exist.");
            }
            throw $e;
        }
        $data = $response->getData();

        return $data[$name];
    }
public function getRepository ( $ name ) { try { $ response = $ this -> request ( $ name ) ; } catch ( ResponseException $ e ) { if ( 404 == $ e -> getResponse ( ) -> getStatus ( ) ) { throw new NotFoundException ( "Repository '" . $ name . "' does not exist." ) ; } throw $ e ; } $ data = $ response -> getData ( ) ; return $ data [ $ name ] ; }
Retrieve a repository record by name.

@param string $name the name of the desired repository

@throws Exception\ResponseException
@throws Exception\NotFoundException

@return array
Retrieve a repository record by name .