idea-php-drupal-symfony2-bridge
                                
                                 idea-php-drupal-symfony2-bridge copied to clipboard
                                
                                    idea-php-drupal-symfony2-bridge copied to clipboard
                            
                            
                            
                        Can we add parsing for hook_theme
First of all thank you for making this plugin. In drupal 8 hook_theme are defined like this.
/**
 * Implements hook_theme().
 */
function user_theme() {
  return array(
    'user' => array(
      'render element' => 'elements',
    ),
    'username' => array(
      'variables' => array('account' => NULL, 'attributes' => array(), 'link_options' => array()),
    ),
  );
}
It means there are user.twig.html and username.twig.html in the core. Can we add the functionality to go to user.twig.html or username.twig.html form the above theme function? A small t for template sign next to the 'username' and 'user' string just like routes or services would take us to respective templates.
ThemeRegistryLoader::findTemplate() is the function which coverts these strings to template file
If you want to have a look at complete processing of the hook the code is in Registry::processExtension.
basically twig path resolve will provide massive more functionality of the symfony2 plugin. also piping variables are possible here. need to implement an extension point first.
you are welcome to provide more examples of how i can parse templates and their vars :).