WhiteOctoberTCPDFBundle
WhiteOctoberTCPDFBundle copied to clipboard
services.yaml
Can you tell me how shoudl be make services.yaml,
i put : "WhiteOctober\TCPDFBundle\Controller\TCPDFController: '@white_october.tcpdf'"
but its not enough becouse all the time I get
Cannot autowire service "App\Controller\BarCodeController": argument "$contener" of method "__construct()" references class "WhiteOctober\TCPDFBundle\WhiteOctoberTCPDFBundle" but no such service exists.
for ` protected $contener;
public function __construct(WhiteOctoberTCPDFBundle $contener)
{
$this->contener = $contener;
}`
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)
then it should work.
Hope this helps.