title: Service not found: even though it exists in the app's container
body: <p>What do I have:</p>
  
  <p><code>services.yaml</code>:</p>
  
  <pre><code>app.foo.bar:
      class: App\Foo\Bar
      arguments: #[ ... ]
  </code></pre>
  
  <p>Controller:</p>
  
  <pre class="lang-php prettyprint-override"><code>use Symfony\Bundle\FrameworkBundle\Controller\Controller;
  
  class MyController extends Controller
  {
      public function baz(Request $request)
      {
          $this-&gt;get('some_bundle.some_service');
      }
  }
  </code></pre>
  
  <p>And it works.</p>
  
  <p>But as <code>Symfony\Bundle\FrameworkBundle\Controller\Controller</code> is deprecated, I've tried to extend <code>Symfony\Bundle\FrameworkBundle\Controller\AbstractController</code> and I got</p>
  
  <blockquote>
    <p>Service "some_bundle.some_service" not found: even
    though it exists in the app's container, the container inside
    "App\Controller\MyController" is a smaller service locator
    that only knows about the "doctrine", "http_kernel", "parameter_bag",
    "request_stack", "router", "serializer" and "session" services. Try
    using dependency injection instead.</p>
  </blockquote>
  
  <p>Can I use <code>get()</code> somehow with <code>AbstractController</code>? <code>AbstractController</code> uses <code>ControllerTrait</code>, I wonder why the error takes place.</p>