Sam Partington
Sam Partington
@aistis- I know it's not exactly the same, but does https://github.com/whiteoctober/WhiteOctoberSwiftMailerDBBundle/pull/21 help with your situation?
Thanks for contributing, @robholmes. I'd like to get this either merged or closed, so please could you rebase it and then I'll take a look?
Hi @GothicBezimienny. Your type annotation in the constructor is for `WhiteOctoberTCPDFBundle`, but your service references `TCPDFController`. If you update your constructor to look like this: ``` public function __construct(TCPDFController $contener)...
Hi @lxregistry, thanks for your feedback. Have you added the bundle to `config/bundles.php`? There's not yet a Symfony Flex recipe for this project, so this won't happen automatically.
Thanks for contributing, @finkbg! You can also configure it for service-autowiring and pass it as a parameter into your controller method - I've just added that to the docs (see...
@finkbg that's fine - both approaches are valid.
Hi @julien-its, Could you take a look at the instructions at https://github.com/whiteoctober/WhiteOctoberTCPDFBundle#using-a-custom-class and see if they provide the information that you need? If you're still stuck, add further comments to...
Oh, and if you *don't* need further help, let us know that too so that we can close this issue! Thanks
Hi Julien, I've done a test of the custom-class functionality here and all seems to be working as expected. Could you update your config to look like this? ``` white_october_tcpdf:...
@julien-its I think the problem is these lines: ``` white_october_tcpdf: class: AppBundle\Services\Exports\Pdf\InvoiceTcpdf ``` These should go in `config.yml`, not `services.yml` as you don't need to define a new service, you...