Skip to content
Permalink
Branch: master
Commits on Apr 11, 2019
  1. minor #40 Exclude the bin folder from archive (Jens Olsson)

    lyrixx committed Apr 11, 2019
    This PR was merged into the 2.0-dev branch.
    
    Discussion
    ----------
    
    Exclude the bin folder from archive
    
    This makes sure that the Cosul binaries used for testing are not
    distributed in the Composer package.
    
    Commits
    -------
    
    caf8075 Exclude the bin folder from archive
Commits on Feb 12, 2019
  1. minor #36 Fix doc on deprecated usage (Nek-)

    lyrixx committed Feb 12, 2019
    This PR was merged into the 2.0-dev branch.
    
    Discussion
    ----------
    
    Fix doc on deprecated usage
    
    Commits
    -------
    
    0ff7708 Fix doc on deprecated usage
  2. feature #39 allow user to pass consistency mode when reading kv store…

    lyrixx committed Feb 12, 2019
    … data. (Alexandre Assouad)
    
    This PR was merged into the 2.0-dev branch.
    
    Discussion
    ----------
    
    allow user to pass consistency mode when reading kv store data.
    
    These modes can be:
    * default: strong consistency
    * consistent: strong consistency
    * stale: can read data regardless of whether it is a leader.
    More information here: https://www.consul.io/api/index.html#consistency-modes
    
    example usage:
    ```
    $this->kv->get('test/my/key', ["stale"=>true]);
    ```
    
    Commits
    -------
    
    e4d4550 allow user to pass consistency mode when reading kv store data. These modes can be: * default: strong consistency * consistent: strong consistency * stale: can read data regardless of whether it is a leader. More information here: https://www.consul.io/api/index.html#consistency-modes
Commits on Oct 18, 2018
  1. bug #38 /catalog/deregister should be PUT, NOT GET (iam2c)

    lyrixx committed Oct 18, 2018
    This PR was merged into the 2.0-dev branch.
    
    Discussion
    ----------
    
    /catalog/deregister should be PUT, NOT GET
    
    Commits
    -------
    
    0ede1c4 /catalog/deregister should be PUT, NOT GET
Commits on Aug 24, 2018
  1. feature #37 Add tests for kv (lyrixx, Nek-)

    lyrixx committed Aug 24, 2018
    This PR was merged into the 2.0-dev branch.
    
    Discussion
    ----------
    
    Add tests for kv
    
    This is #4 with:
    - Rebase
    - Consul binary
    - Tests green
    - Travis configuration
    
    Commits
    -------
    
    4f03c81 Add consul for test environment, phpunit, and fix
    da08e00 Added tests for KV service
Commits on Aug 23, 2018
  1. Added tests for KV service

    lyrixx authored and Nek- committed Nov 19, 2014
Commits on Sep 15, 2017
  1. minor #33 Add syntax highlighting to readme (frozzare)

    lyrixx committed Sep 15, 2017
    This PR was merged into the 2.0-dev branch.
    
    Discussion
    ----------
    
    Add syntax highlighting to readme
    
    Commits
    -------
    
    4378d85 Add syntax highlighting to readme
Commits on Jul 25, 2017
  1. feature #32 Introducing interfaces to services & made implementations…

    lyrixx committed Jul 25, 2017
    … final. (artospaj)
    
    This PR was squashed before being merged into the 2.0-dev branch (closes #32).
    
    Discussion
    ----------
    
    Introducing interfaces to services & made implementations final.
    
    In this Pull Request I'd like to introduce interfaces for Consul services. This would help others - who use the library - to mock it in their Unit Tests.
    
    Introducing interfaces also allowed to made the implementations `final`.
    
    Commits
    -------
    
    6006ce8 Introducing interfaces to services & made implementations final.
Commits on May 11, 2017
  1. feature #28 providing way to override default consul address (benschw)

    lyrixx committed May 11, 2017
    This PR was squashed before being merged into the 2.0-dev branch (closes #28).
    
    Discussion
    ----------
    
    providing way to override default consul address
    
    - Preserve default behavior of using localhost of no overrides are provided
    - if env var `CONSUL_HTTP_ADDR` (the var used by others clients to configure a consul address) is set, it is leveraged
    - if `base_uri` is provided in options array, it is leveraged
    
    Commits
    -------
    
    652c673 providing way to override default consul address
Commits on Mar 6, 2017
  1. minor #25 Fixed CS (lyrixx)

    lyrixx committed Mar 6, 2017
    This PR was merged into the 2.0-dev branch.
    
    Discussion
    ----------
    
    Fixed CS
    
    Commits
    -------
    
    62c6e43 Fixed CS
  2. Fixed CS

    lyrixx committed Mar 6, 2017
  3. feature #24 Make status code available on consul response (Gufran)

    lyrixx committed Mar 6, 2017
    This PR was merged into the 2.0-dev branch.
    
    Discussion
    ----------
    
    Make status code available on consul response
    
    Since this is a library for HTTP API, status code is crucial to maintain compatibility with specifications like PSR7 and other abstractions. This changeset makes status code available on consul response.
    
    Commits
    -------
    
    08a412a Make status code available on consul response
Commits on Oct 20, 2016
  1. feature #23 Add http status code on exceptions (Gufran)

    lyrixx committed Oct 20, 2016
    This PR was merged into the 2.0-dev branch.
    
    Discussion
    ----------
    
    Add http status code on exceptions
    
    This changeset makes the HTTP status code available on the exception message. Right now there is no way to distinguish between different HTTP errors that could happen except for a string match on exception message, it results in code like
    
    ```php
    if (stristr($exception->getMessage(), '404 - Not Found')) {
       //... Logic here
    }
    ```
    
    which is not really scalable. After this change will be possible to write code like
    
    ```php
    if ($exception->getCode() == 400) {
       //... Logic here
    }
    ```
    
    Commits
    -------
    
    9af602b Add http status code on exceptions
Commits on Jul 5, 2016
  1. bug #21 Guzzle6 fixes (jippi)

    lyrixx committed Jul 5, 2016
    This PR was squashed before being merged into the 1.1-dev branch (closes #21).
    
    Discussion
    ----------
    
    Guzzle6 fixes
    
    Guzzle6 uses `base_uri` and not `base_url` for default configuration
    Guzzle6 expect the body to be pre-encoded as json before shipping
    Guzzle6 will return `''` on multiple reads on the same response unless you `->seek(0)` before next read - casting to string will do the seek and return the full response instead
    
    Commits
    -------
    
    d06ba9a Guzzle6 fixes
Commits on Jun 15, 2016
  1. Merge pull request #19 from romainneutron/guzzle6-compat

    lyrixx committed Jun 15, 2016
    Update SDK for Guzzle 6
Commits on Apr 11, 2016
  1. bug #18 Added renew api call for Session service (tusharkant)

    lyrixx committed Apr 11, 2016
    This PR was merged into the 1.1-dev branch.
    
    Discussion
    ----------
    
    Added renew api call for Session service
    
    The renew API called as per documentation in Consul's HTTP API section: https://www.consul.io/docs/agent/http/session.html
    
    Also removed dummy methods for KV store.
    
    Signed-off-by: Tushar Kant tushar91delete@gmail.com
    
    Commits
    -------
    
    eb57a4d Added renew api call for Session service
Commits on Jun 3, 2015
  1. Bump to v1.1

    lyrixx committed Jun 3, 2015
Commits on Dec 8, 2014
  1. feature #9 Added a distributed lock handler (lyrixx)

    lyrixx committed Dec 8, 2014
    This PR was merged into the 1.0-dev branch.
    
    Discussion
    ----------
    
    Added a distributed lock handler
    
    Commits
    -------
    
    46c2a4f Added a distributed lock handler
Commits on Dec 3, 2014
  1. feature #7 Added support for 'catalog' service (lyrixx)

    lyrixx committed Dec 3, 2014
    This PR was merged into the 1.0-dev branch.
    
    Discussion
    ----------
    
    Added support for 'catalog' service
    
    Commits
    -------
    
    7a300ce Added support for 'catalog' service
Commits on Nov 25, 2014
Commits on Nov 20, 2014
  1. feature #6 added support for 'health' service (lyrixx)

    lyrixx committed Nov 20, 2014
    This PR was merged into the 1.0-dev branch.
    
    Discussion
    ----------
    
    added support for 'health' service
    
    Commits
    -------
    
    abb8d06 added support for 'health' service
Commits on Nov 19, 2014
  1. Merge pull request #3 from sensiolabs/service-agent

    lyrixx committed Nov 19, 2014
    added support for 'agent' service
Commits on Nov 18, 2014
Commits on Nov 17, 2014
  1. minor #2 Be kind with case insensitive file systems (lyrixx)

    lyrixx committed Nov 17, 2014
    This PR was merged into the 1.0-dev branch.
    
    Discussion
    ----------
    
    Be kind with case insensitive file systems
    
    refs #1
    
    Commits
    -------
    
    1e7a35f Be kind with case insensitive file systems
  2. Added branch alias to composer.json

    lyrixx committed Nov 17, 2014
    Add fix LICENSE
  3. Added initial set of files

    lyrixx committed Nov 17, 2014
You can’t perform that action at this time.