You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
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;
}`
The text was updated successfully, but these errors were encountered:
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.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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;
The text was updated successfully, but these errors were encountered: