Skip to content

Commit 5d212af

Browse files
authored
Update README.md
1 parent eda24c7 commit 5d212af

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ extensions:
4444
expectations_path: /my/expectations/path
4545
```
4646
47+
Phiremock uses annotations internally. To be able to run the extension, the annotations autoloader must be activated. To do this, you must add the next lines in the bootstrap file where you include your composer autoloader:
48+
```php
49+
$loader = require APP_ROOT . '/vendor/autoload.php';
50+
\Doctrine\Common\Annotations\AnnotationRegistry::registerLoader([$loader, 'loadClass']);
51+
```
52+
4753
## Parameters
4854

4955
* **listen:** Specifies the interface and port where phiremock must listen for requests

0 commit comments

Comments
 (0)