How to get the Symfony public folder on commands.
On request to get the /var/www/myapp/web
folder I can call:
$this->get('request')->getBasePath();
but how to get the public folder on a command and I don't want something hardcoded like %kernel.dir%/../web
, because it should also work when the installation use public not web as folder or other custom folders.