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

Merge branch '3458360-do-not-use-ControllerBase-as-parent-class' into '4.0.x'

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

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