Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Add note about enabling service autowiring #48

Merged
merged 1 commit into from
Jun 21, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,19 @@ return [

(This project is not yet configured with Symfony Flex, so this change to `config/bundles.php` won't be done automatically.)

If you want to do service autowiring, you'll need to add an alias for the service:

```yaml
# app/config/services.yml (Symfony 3)
# config/services.yaml (Symfony 4)
services:
# ...

# the `white_october.tcpdf` service will be injected when a
# `WhiteOctober\TCPDFBundle\Controller\TCPDFController` type-hint is detected
WhiteOctober\TCPDFBundle\Controller\TCPDFController: '@white_october.tcpdf'
```

Using TCPDF
-----------

Expand Down