title: Symfony best pratice
body: <p>I'm using symfony 3.3 and I want to know what is the best practice for these cases : </p>
  
  <p>on render() for display template </p>
  
  <pre><code>- folder:view.html.twig
  - folder/view.html.twig
  - @folder...
  </code></pre>
  
  <p>on getRepository()</p>
  
  <pre><code>- 'AppBundle:EntityName'
  - Entityname::class
  </code></pre>
  
  <p>on formtype</p>
  
  <pre><code>$resolver-&gt;setDefaults(array(
      'data_class' =&gt; EntityName::class
  ));
  </code></pre>
  
  <p>or </p>
  
  <pre><code>$resolver-&gt;setDefaults(array(
      'data_class' =&gt; 'AppBundle\Entity\EntityName'
  ));
  </code></pre>
  
  <p>on formtype like entitytype</p>
  
  <pre><code>   -&gt;add(
          'words',
          EntityType::class,
          array(
              'class'        =&gt; Word::class,
          )
      )
  </code></pre>
  
  <p>or </p>
  
  <pre><code>   -&gt;add(
          'words',
          EntityType::class,
          array(
              'class'        =&gt; 'AppBundle\Entity\Word',
          )
      )
  </code></pre>
  
  <p>On controller Action()</p>
  
  <pre><code>newAction(EntityManagerInterface $em)
  </code></pre>
  
  <p>or</p>
  
  <pre><code>    public function newAction()
      {
          $em = $this-&gt;getDoctrine()-&gt;getManager();
      }
  </code></pre>
  
  <p>I have read the best practice on symfony website but I have not see those informations.</p>