title: how do i inject a repository to CommandController
body: <p>I got a commandController like this (using TYPO3 6.1):</p>
  
  <pre><code>class MyCommandController extends \TYPO3\CMS\Extbase\Mvc\Controller\CommandController {
      /**
       * fileRepository
       *
       * @var \VENDOR\MyExt\Domain\Repository\FileRepository
       * @inject
       */
      protected $fileRepository;
  }
  </code></pre>
  
  <p>but when i try cast</p>
  
  <pre><code>$this-&gt;fileRepository-&gt;findAll();
  </code></pre>
  
  <p>i get:</p>
  
  <pre><code>Fatal error: Call to a member function findAll() on a non-object in
  </code></pre>
  
  <p>looks like the repostory is not autoinjected with @inject like it is in ActionControllers.</p>
  
  <p>How do i inject the repository manually?</p>