Skip to content
Snippets Groups Projects
Commit 151703be authored by Alberto Paderno's avatar Alberto Paderno
Browse files

Issue #3458360: Do not use ControllerBase as parent class for RestExampleHelpController

parent 63ddbacf
No related branches found
No related tags found
1 merge request!57Issue #3458360: Do not use ControllerBase as parent class for RestExampleHelpController
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
namespace Drupal\rest_example\Controller; namespace Drupal\rest_example\Controller;
use Drupal\Core\Controller\ControllerBase; use Drupal\Core\DependencyInjection\ContainerInjectionInterface;
use Drupal\examples\Utility\DescriptionTemplateTrait; use Drupal\examples\Utility\DescriptionTemplateTrait;
/** /**
...@@ -10,10 +10,17 @@ ...@@ -10,10 +10,17 @@
* *
* @ingroup rest_example * @ingroup rest_example
*/ */
class RestExampleHelpController extends ControllerBase { class RestExampleHelpController implements ContainerInjectionInterface {
use DescriptionTemplateTrait; use DescriptionTemplateTrait;
/**
* {@inheritdoc}
*/
public static function create(ContainerInterface $container) {
return new static();
}
/** /**
* {@inheritdoc} * {@inheritdoc}
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment