Use class \Symfony\Component\Console\Input\StringInput in Controller.