From 840754c8ec6d5ec481ff69d2209fd5fb243382a5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20=C5=A0kvorc?= Date: Sat, 31 Oct 2015 21:08:30 +0100 Subject: [PATCH] Update discovery.md Added installation section, and fixed markup for a link. --- docs/discovery.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/docs/discovery.md b/docs/discovery.md index 7f338ca..0169447 100644 --- a/docs/discovery.md +++ b/docs/discovery.md @@ -11,6 +11,11 @@ Currently available discovery services: The principle is always the same: you call the static `find` method on the discovery service if no explicit implementation was specified. The discovery service will try to locate a suitable implementation. If no implementation is found, an `Http\Discovery\NotFoundException` is thrown. +## Installation + +``` +composer require "php-http/discovery" +``` ## HTTP Client Discovery @@ -40,7 +45,7 @@ class MyClass ## PSR-7 Message Factory Discovery -This type of discovery finds installed [PSR-7](http://www.php-fig.org/psr/psr-7/) Message implementations and their (factories)[message-factory.md]. +This type of discovery finds installed [PSR-7](http://www.php-fig.org/psr/psr-7/) Message implementations and their [factories](message-factory.md). ``` php use Http\Message\MessageFactory;