public function connection()
    {
        if (!$this->connection) {
            $config = $this->app['config']['plastic'];

            $this->connection = new Connection($config);
        }

        return $this->connection;
    }
public function connection()
    {
        if (!$this->connection) {
            $config = $this->app['config']['plastic'];

            $this->connection = new Connection($config);
        }

        return $this->connection;
    }
public function connection ( ) { if ( ! $ this -> connection ) { $ config = $ this -> app [ 'config' ] [ 'plastic' ] ; $ this -> connection = new Connection ( $ config ) ; } return $ this -> connection ; }
Get an elastic search connection instance.
Get an elastic search connection instance .