Skip to content

Commit 92cd365

Browse files
committed
Merge pull request #101 from Nyholm/errors
Added the two most common errors with discovery
2 parents 38ae0c7 + 6b2151f commit 92cd365

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

discovery.rst

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,27 @@ If you need the composer-plugin for testing in a reusable library, make it a dev
5656
Read more about setting up Puli in their `official documentation`_.
5757

5858

59+
Common Errors
60+
-------------
61+
62+
Puli Factory is not available
63+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
64+
65+
If you get an error that says "*Puli Factory is not available*", it means that you have failed to install Puli. You should
66+
make sure you install the latest version of ``puli/composer-plugin``.
67+
68+
No factories found
69+
^^^^^^^^^^^^^^^^^^
70+
71+
The error "*No factories found. To use Guzzle or Diactoros factories install php-http/message and the chosen message implementation.*"
72+
tells you that Puli could not find an installed implementation of PSR-7 and/or factories to that implementation. You
73+
need to install those libraries. If you want to use Guzzle you may run:
74+
75+
.. code-block:: bash
76+
77+
$ composer require php-http/message guzzlehttp/psr7
78+
79+
5980
HTTP Client Discovery
6081
---------------------
6182

0 commit comments

Comments
 (0)