Skip to content
This repository has been archived by the owner on Jul 15, 2021. It is now read-only.

Commit

Permalink
Updated documentation for client class override
Browse files Browse the repository at this point in the history
  • Loading branch information
csarrazi committed Jun 12, 2015
1 parent 58858df commit 74c76c6
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/Resources/doc/clients.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ class MyController extends Controller
}
```

If you override your client's class, you can also set the class for your client:

```yml
csa_guzzle:
clients:
my_client:
class: AppBundle\Client
# ...
```

Of course, you need to make sure that your client class has no constructor arguments.

If you need to pass constructor arguments to your class, then you should use the tag syntax (see below).

Registering your own service
----------------------------

Expand Down

0 comments on commit 74c76c6

Please sign in to comment.