Mam problem z wyciągnięciem z kontenera usługi. Otóż mam klasę:
AppBundle\Service\Edit\Append\PushSql.class jako usługę .
Rejestruje ją jako usługę w symfony 3.4 w config:
  1. pushsql:
  2. class: AppBundle\Service\Edit\Append\PushSql
  3. autowire: true


Próbuje wyciągnąć za pomoce kontenera:
  1. $pushsql=$this->container->get('pushsql');

I pokazuje mi się komunikat:

You have requested a non-existent service "pushsql".

Wiem, że mogę wrzucić to do argumentu konstruktora i tam ją wyciągnąć ale Ja Chcę tak ją wyciągnąć . Nie ważne dlaczego exclamation.gif! Więc proszę o pomoc