lib/Elastica/Snapshot.php
public function registerRepository($name, $type, $settings = [])
    {
        $data = [
            'type' => $type,
            'settings' => $settings,
        ];

        return $this->request($name, Request::PUT, $data);
    }
public function registerRepository($name, $type, $settings = [])
    {
        $data = [
            'type' => $type,
            'settings' => $settings,
        ];

        return $this->request($name, Request::PUT, $data);
    }
public function registerRepository ( $ name , $ type , $ settings = [ ] ) { $ data = [ 'type' => $ type , 'settings' => $ settings , ] ; return $ this -> request ( $ name , Request :: PUT , $ data ) ; }
Register a snapshot repository.

@param string $name     the name of the repository
@param string $type     the repository type ("fs" for file system)
@param array  $settings Additional repository settings. If type "fs" is used, the "location" setting must be provided.

@return Response
Register a snapshot repository .