Skip to content
Snippets Groups Projects

Resolve #3394870 "Allow controller service"

Files

@@ -2,12 +2,12 @@
@@ -2,12 +2,12 @@
namespace Drupal\Core\Controller;
namespace Drupal\Core\Controller;
 
use Drupal\Core\DependencyInjection\AutowireTrait;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Logger\LoggerChannelTrait;
use Drupal\Core\Logger\LoggerChannelTrait;
use Drupal\Core\Routing\RedirectDestinationTrait;
use Drupal\Core\Routing\RedirectDestinationTrait;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\Url;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Messenger\MessengerTrait;
use Drupal\Core\Messenger\MessengerTrait;
use Symfony\Component\HttpFoundation\RedirectResponse;
use Symfony\Component\HttpFoundation\RedirectResponse;
@@ -34,6 +34,7 @@
@@ -34,6 +34,7 @@
*/
*/
abstract class ControllerBase implements ContainerInjectionInterface {
abstract class ControllerBase implements ContainerInjectionInterface {
 
use AutowireTrait;
use LoggerChannelTrait;
use LoggerChannelTrait;
use MessengerTrait;
use MessengerTrait;
use RedirectDestinationTrait;
use RedirectDestinationTrait;
@@ -102,13 +103,6 @@ abstract class ControllerBase implements ContainerInjectionInterface {
@@ -102,13 +103,6 @@ abstract class ControllerBase implements ContainerInjectionInterface {
*/
*/
protected $formBuilder;
protected $formBuilder;
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static();
}
/**
/**
* Retrieves the entity type manager.
* Retrieves the entity type manager.
*
*
Loading