title: Symfony 3.4 Use view inside my bundle
body: <p>I've some trouble for the configuration of a new repository using Symfony 3.4. I've used the symfony command for create him with last LTS (3.4) and I add a new Bundle using command too. My new Bundle is up and work well but I can't use view stored inside this bundle.</p>
  
  <p>I show you the structure of my Bundle :</p>
  
  <p><a href="https://i.stack.imgur.com/cvUKQ.png" rel="noreferrer"><img src="https://i.stack.imgur.com/cvUKQ.png" alt="structure"></a></p>
  
  <p>I want to use this index.html.twig in my controller like this :</p>
  
  <pre><code>&lt;?php
  
  namespace Lister\ListerBundle\Controller;
  
  use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
  
  class DefaultController extends Controller
  {
      /**
       * @Route("/lister")
       */
      public function indexAction()
      {
          return $this-&gt;render('ListerListerBundle:Default:index.html.twig');
      }
  }
  </code></pre>
  
  <p>But when I try to render it I've this error.</p>
  
  <blockquote>
    <p>Unable to find template "ListerListerBundle:Default:index.html.twig" (looked into: /home/emendiel/Data/Code/Perso/WebLister/app/Resources/views, /home/emendiel/Data/Code/Perso/WebLister/vendor/symfony/symfony/src/Symfony/Bridge/Twig/Resources/views/Form).</p>
  </blockquote>
  
  <p>I understand what that say, my folder is not where symfony search my view but I don't found how I can said to Symfony go in "ListerBundle/Ressources/views"</p>
  
  <p>In my oldest project that was work without other configuration.</p>
  
  <p><strong>Info:</strong> I use my bundle as reusable bundle.</p>
  
  <p>Regards,</p>
  
  <p><strong>PS:</strong> This is my autoload part in composer.json</p>
  
  <pre><code>"autoload": {
      "psr-4": {
          "": "src/"
      },
      "classmap": [
          "app/AppKernel.php",
          "app/AppCache.php"
      ]
  },
  </code></pre>
  
  <p><strong>PSS:</strong> My AppKernel :</p>
  
  <pre><code>public function registerBundles()
  {
      $bundles = [
          new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
          new Symfony\Bundle\SecurityBundle\SecurityBundle(),
          new Symfony\Bundle\TwigBundle\TwigBundle(),
          new Symfony\Bundle\MonologBundle\MonologBundle(),
          new Symfony\Bundle\SwiftmailerBundle\SwiftmailerBundle(),
          new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
          new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
          new AppBundle\AppBundle(),
          new Lister\ListerBundle\ListerListerBundle(),
      ];
  ...
  </code></pre>
  
  <p><strong>And Again:</strong> Here My dependencyInjection</p>
  
  <p><a href="https://i.stack.imgur.com/vYv3L.png" rel="noreferrer"><img src="https://i.stack.imgur.com/vYv3L.png" alt="enter image description here"></a></p>
  
  <p>And the content of files :</p>
  
  <p>Configuration.php</p>
  
  <pre><code>&lt;?php
  
  namespace Lister\ListerBundle\DependencyInjection;
  
  use Symfony\Component\Config\Definition\Builder\TreeBuilder;
  use Symfony\Component\Config\Definition\ConfigurationInterface;
  
  /**
   * This is the class that validates and merges configuration from your app/config files.
   *
   * To learn more see {@link http://symfony.com/doc/current/cookbook/bundles/configuration.html}
   */
  class Configuration implements ConfigurationInterface
  {
      /**
       * {@inheritdoc}
       */
      public function getConfigTreeBuilder()
      {
          $treeBuilder = new TreeBuilder();
          $rootNode = $treeBuilder-&gt;root('lister_lister');
  
          // Here you should define the parameters that are allowed to
          // configure your bundle. See the documentation linked above for
          // more information on that topic.
  
          return $treeBuilder;
      }
  }
  </code></pre>
  
  <p>ListerListerExtension.php</p>
  
  <pre><code>&lt;?php
  
  namespace Lister\ListerBundle\DependencyInjection;
  
  use Symfony\Component\DependencyInjection\ContainerBuilder;
  use Symfony\Component\Config\FileLocator;
  use Symfony\Component\HttpKernel\DependencyInjection\Extension;
  use Symfony\Component\DependencyInjection\Loader;
  
  /**
   * This is the class that loads and manages your bundle configuration.
   *
   * @link http://symfony.com/doc/current/cookbook/bundles/extension.html
   */
  class ListerListerExtension extends Extension
  {
      /**
       * {@inheritdoc}
       */
      public function load(array $configs, ContainerBuilder $container)
      {
          $configuration = new Configuration();
          $config = $this-&gt;processConfiguration($configuration, $configs);
  
          $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
          $loader-&gt;load('services.yml');
      }
  }
  </code></pre>
  
  <p><strong>Solution:</strong> from @Cerad</p>
  
  <p>@ListerLister/Default/index.html.twig</p>
  
  <p>Original response from @Cerad</p>
  
  <blockquote>
    <p>For some reason, S3.4 no longer likes the Bundle:Dir:name approach to specifying twig paths and the generate:bundle command has not yet been updated. Not sure if it is a bug or feature. The @ListerLister/Default/index.html.twig path suggested above should work. Try bin/console debug:twig to see your twig namespaces paths. – Cerad</p>
  </blockquote>