Good afternoon, I'm used to doing this in Symfony2 as follows In service.yml
api.service.filter: class: ApiBundle\Service\FilterRule arguments: - "%some.parametr%" In the service
* @param $some */ public function __construct($some) { $this->some = $some; } and then in any service method, this parameter is received via
$this->some And then I ran into the fact that I have such a code
public static function fromParamFetcher(ParamFetcherInterface $fetcher) { $input = new static(); $input->code = $fetcher->get('code', $strict = true); $input->dateFrom = $fetcher->get('dateFrom', $strict = true); $input->dateTo = $fetcher->get('dateTo', $strict = true); } And here this-> some can not pass. How can you do it right?