diff --git a/modules/rest_example/src/Controller/RestExampleHelpController.php b/modules/rest_example/src/Controller/RestExampleHelpController.php
index c6e4c3fc9325f4b0550fb3972ab15c3b800f43b6..7e50400da15da2e54fd8261191b9b779885d12e1 100644
--- a/modules/rest_example/src/Controller/RestExampleHelpController.php
+++ b/modules/rest_example/src/Controller/RestExampleHelpController.php
@@ -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}
    */