Skip to content
Snippets Groups Projects
Commit f8d017c8 authored by Stephen Ward's avatar Stephen Ward
Browse files

Swaps ControllerBase for ContainerInjectionInterface in response to security...

Swaps ControllerBase for ContainerInjectionInterface in response to security advisory feedback: https://www.drupal.org/project/projectapplications/issues/3502968#comment-16064277
parent 62e2980f
Branches 1.x
No related tags found
No related merge requests found
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace Drupal\rest_easy_postman\Controller; namespace Drupal\rest_easy_postman\Controller;
use Drupal\Core\Controller\ControllerBase; use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\Core\Link; use Drupal\Core\Link;
use Drupal\Core\StringTranslation\StringTranslationTrait; use Drupal\Core\StringTranslation\StringTranslationTrait;
use Drupal\Core\Url; use Drupal\Core\Url;
...@@ -16,7 +16,7 @@ use Symfony\Component\HttpFoundation\Response; ...@@ -16,7 +16,7 @@ use Symfony\Component\HttpFoundation\Response;
* *
* @package Drupal\rest_easy_postman\Routing * @package Drupal\rest_easy_postman\Routing
*/ */
class PostmanCollectionController extends ControllerBase { class PostmanCollectionController implements ContainerInjectionInterface {
use StringTranslationTrait; use StringTranslationTrait;
/** /**
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
namespace Drupal\rest_easy\Controller; namespace Drupal\rest_easy\Controller;
use Drupal\Core\Access\AccessResult; use Drupal\Core\Access\AccessResult;
use Drupal\Core\Controller\ControllerBase; use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\rest_easy\Plugin\EndpointManager; use Drupal\rest_easy\Plugin\EndpointManager;
use Symfony\Component\DependencyInjection\ContainerInterface; use Symfony\Component\DependencyInjection\ContainerInterface;
...@@ -12,7 +12,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface; ...@@ -12,7 +12,7 @@ use Symfony\Component\DependencyInjection\ContainerInterface;
* *
* @package Drupal\rest_easy\Routing * @package Drupal\rest_easy\Routing
*/ */
class EndpointController extends ControllerBase { class EndpointController implements ContainerInjectionInterface {
/** /**
* Endpoint plugin manager service. * Endpoint plugin manager service.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment