idea-php-drupal-symfony2-bridge icon indicating copy to clipboard operation
idea-php-drupal-symfony2-bridge copied to clipboard

Provide references and completion for controller

Open Haehnchen opened this issue 8 years ago • 1 comments

Provide a better controller class detection


  1. We have the following controller:
<?php
namespace Drupal\hello_world\Controller;
use Drupal\Core\Controller\ControllerBase;
class HelloController extends ControllerBase{
    public function content()
    {
        return array(
            '#type' => 'markup',
            '#markup' => $this->t('Hello World'),
        );
    }
}
hello_world.content:
  path: '/hello'
  defaults:
    _controller: '<caret>'
    _title: 'Hello World'
  requirements:
    _permission: 'access content'

There will be no completion at the caret. After insertion of \Drupal\hello_world\Controller\HelloController it won't be possible to navigate to the class.

As a first step we can provide completion and make references in all string values.

https://youtrack.jetbrains.com/issue/WI-38073

Haehnchen avatar Sep 18 '17 18:09 Haehnchen

+1

ccharlton avatar Apr 23 '18 04:04 ccharlton