I\'ve set a variable in parameters.ini, but now I want to retrieve that variable from an EntityRepository and $this->container is unset so I can\'t do it
$this->container
If you really only need to pass an argument to the service, you can just pass it without needing a manager, like:
services: your_service: class: YourServiceClass arguments: [%some.parameter%]