diff --git a/composer.json b/composer.json index 5fefefa6..564145d4 100644 --- a/composer.json +++ b/composer.json @@ -12,13 +12,16 @@ "doctrine/data-fixtures": "~1.0", "behat/mink-extension": "~2.0", "fzaninotto/faker": "~1.4", - "nelmio/alice": "~2.0", - "guzzle/guzzle": "~3.7" + "nelmio/alice": "~2.0" }, "require-dev": { "phpspec/phpspec": "~2.4|~3.0", "doctrine/orm": "~2.5", - "knplabs/phpspec-welldone-extension": "dev-master" + "knplabs/phpspec-welldone-extension": "dev-master", + "guzzle/guzzle": "~3.7" + }, + "suggest": { + "guzzle/guzzle": "To use the Api Context (needs guzzle 3)" }, "license": "MIT", "authors": [ diff --git a/doc/configuration.md b/doc/configuration.md index 7d2a7be9..162b631d 100644 --- a/doc/configuration.md +++ b/doc/configuration.md @@ -4,7 +4,7 @@ Installation Execute ``` -composer require knplabs/friendly-contexts dev-master +composer require knplabs/friendly-contexts ``` Edit behat.yml diff --git a/doc/context-api.md b/doc/context-api.md index b4e4937b..c0ab39de 100644 --- a/doc/context-api.md +++ b/doc/context-api.md @@ -1,7 +1,15 @@ Api Context =========== -This context allow you to handle web Api features for your applications. It needs some configuration: +This context allow you to handle web Api features for your applications. + +It has a dependency on `guzzle 3`. You can add it to your project using the following command: + +``` +composer require 'guzzle/guzzle' '~3.7' +``` + +Then the context needs some configuration: ```yaml default: