I was trying to git pull by calling a spesific route. I\'m using symfony/process inside my controller like so:
git pull
public function pull() { $proc