I would like to get instance of
Nette\Application\Request to my
But I don't know how can I inject it because everytime I get error
Parameter $name in Nette\Application\Request::__construct() has no class type hint or default value, so its value must be specified
Is there some way how to?
David Matějka wrote:
I need it because I have service for prepare parameters and don't want to write it in presenter :)
well then may be better to follow @CZechBoY recommendation and pass the current Request object to the method you probably call from a presenter
Ok, I will follow recommendation from @CZechBoY and pass it from a presenter.