.../contact/src/Controller/ContactController.php | 28 +--------------------- 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/core/modules/contact/src/Controller/ContactController.php b/core/modules/contact/src/Controller/ContactController.php index bfaf6aa..44d23df 100644 --- a/core/modules/contact/src/Controller/ContactController.php +++ b/core/modules/contact/src/Controller/ContactController.php @@ -7,16 +7,12 @@ namespace Drupal\contact\Controller; -use Drupal\Core\Cache\Cache; use Drupal\Core\Controller\ControllerBase; -use Drupal\Core\Datetime\DateFormatter; -use Drupal\Core\Flood\FloodInterface; use Drupal\contact\ContactFormInterface; use Drupal\Core\Render\RendererInterface; use Drupal\user\UserInterface; use Drupal\Component\Utility\SafeMarkup; use Symfony\Component\DependencyInjection\ContainerInterface; -use Symfony\Component\HttpKernel\Exception\AccessDeniedHttpException; use Symfony\Component\HttpKernel\Exception\NotFoundHttpException; /** @@ -25,20 +21,6 @@ class ContactController extends ControllerBase { /** - * The flood service. - * - * @var \Drupal\Core\Flood\FloodInterface - */ - protected $flood; - - /** - * The date formatter service. - * - * @var \Drupal\Core\Datetime\DateFormatter - */ - protected $dateFormatter; - - /** * The renderer. * * @var \Drupal\Core\Render\RendererInterface @@ -48,16 +30,10 @@ class ContactController extends ControllerBase { /** * Constructs a ContactController object. * - * @param \Drupal\Core\Flood\FloodInterface $flood - * The flood service. - * @param \Drupal\Core\Datetime\DateFormatter $date_formatter - * The date service. * @param \Drupal\Core\Render\RendererInterface $renderer * The renderer. */ - public function __construct(FloodInterface $flood, DateFormatter $date_formatter, RendererInterface $renderer) { - $this->flood = $flood; - $this->dateFormatter = $date_formatter; + public function __construct(RendererInterface $renderer) { $this->renderer = $renderer; } @@ -66,8 +42,6 @@ public function __construct(FloodInterface $flood, DateFormatter $date_formatter */ public static function create(ContainerInterface $container) { return new static( - $container->get('flood'), - $container->get('date.formatter'), $container->get('renderer') ); }