I have an image under the public folder. How can I get my image directory in symfony4 ? In symfony 3, it\'s equivalent is :
public
$webPath = $this
In Controller (also with inheriting AbstractController):
$projectDir = $this->getParameter('kernel.project_dir');