title: Class Shopware_Controllers_Backend_MytestPaymentServices does not exist in engine/Library/Enlight/Hook/ProxyFactory.php on line 164
body: <p>I am trying to implement a test button as refs  <a href="https://developers.shopware.com/developers-guide/plugin-guidelines/#testing-communication-with-external-apis" rel="nofollow noreferrer">here</a></p>
  
  <p>Here is my service file</p>
  
  <pre><code>&lt;?xml version="1.0" ?&gt;
  
  &lt;container xmlns="http://symfony.com/schema/dic/services"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd"&gt;
  
      &lt;services&gt;
          &lt;service id="mytest_payment.mytest_payment_controllers_backend_mytest_payment_services" class="MytestPayment\Controllers\Backend\MytestPaymentServices"&gt;
              &lt;argument type="service" id="http_client"/&gt;
              &lt;argument type="service" id="MytestPayment.logger" /&gt;
              &lt;tag name="shopware.controller" module="backend" controller="MytestPayment\Controllers\Backend\MytestPaymentServices"/&gt;
          &lt;/service&gt;
      &lt;/services&gt;
  
  &lt;/container&gt;
  </code></pre>
  
  <p>and</p>
  
  <p>MytestPaymentServices.php </p>
  
  <pre><code>&lt;?php
  
  
  namespace MytestPayment\Controllers\Backend;
  
  use Monolog\Logger;
  use Shopware\Components\HttpClient\HttpClientInterface;
  use Shopware\Components\HttpClient\RequestException;
  use Symfony\Component\HttpFoundation\Response;
  
   class MytestPaymentServices extends \Shopware_Controllers_Backend_ExtJs
  {
      private const EXTERNAL_API_BASE_URL = 'https://www.dom.com/api';
      /**
       * @var HttpClientInterface
       */
      private $client;
  
      /**
       * @var Logger
       */
      private $logger;
  
      public function __construct(HttpClientInterface $client, Logger $logger)
      {
          $this-&gt;client = $client;
          $this-&gt;logger = $logger;
  
          parent::__construct();
      }
  
      public function testAction()
      {
          try {
              $response = $this-&gt;client-&gt;get(self::EXTERNAL_API_BASE_URL);
  
              if ((int) $response-&gt;getStatusCode() === Response::HTTP_OK) {
                  $this-&gt;View()-&gt;assign('response', 'Success!');
              } else {
                  $this-&gt;View()-&gt;assign('response', 'Oh no! Something went wrong :(');
              }
          } catch (RequestException $exception) {
              $this-&gt;logger-&gt;addError($exception-&gt;getMessage());
  
              $this-&gt;response-&gt;setStatusCode(Response::HTTP_INTERNAL_SERVER_ERROR);
              $this-&gt;View()-&gt;assign('response', $exception-&gt;getMessage());
          }
      }
  }
  </code></pre>
  
  <p>but I get the following error</p>
  
  <p><code>Class Shopware_Controllers_Backend_MytestPaymentServices does not exist in engine/Library/Enlight/Hook/ProxyFactory.php on line 164</code></p>