title: Get the path of a directory inside a bundle in Symfony
body: <p>From inside a controller I need to get the path of one directory inside a bundle. So I have:</p>
  
  <pre><code>class MyController extends Controller{
  
      public function copyFileAction(){
          $request = $this-&gt;getRequest();
  
          $directoryPath = '???'; // /web/bundles/mybundle/myfiles
          $request-&gt;files-&gt;get('file')-&gt;move($directoryPath);
  
          // ...
      }
  }
  </code></pre>
  
  <p>How to get correct <code>$directoryPath</code>? </p>