Skip to content
Snippets Groups Projects

Resolve #3394870 "Allow controller service"

Closed Dave Long requested to merge issue/drupal-3394870:3394870-allow-controller-service into 11.x
1 unresolved thread
Files
6
@@ -2,12 +2,12 @@
namespace Drupal\Core\Controller;
use Drupal\Core\DependencyInjection\AutowireTrait;
use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Logger\LoggerChannelTrait;
use Drupal\Core\Routing\RedirectDestinationTrait;
use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\Url;
use Symfony\Component\DependencyInjection\ContainerInterface;
use Drupal\Core\Messenger\MessengerTrait;
use Symfony\Component\HttpFoundation\RedirectResponse;
@@ -34,6 +34,7 @@
*/
abstract class ControllerBase implements ContainerInjectionInterface {
use AutowireTrait;
use LoggerChannelTrait;
use MessengerTrait;
use RedirectDestinationTrait;
@@ -102,13 +103,6 @@ abstract class ControllerBase implements ContainerInjectionInterface {
*/
protected $formBuilder;
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static();
}
/**
* Retrieves the entity type manager.
*
Loading