title: Properly inject AuthManager?
body: <p>I am using <a href="https://github.com/tymondesigns/jwt-auth" rel="nofollow">jwt-auth</a> library, which injects AuthManager using type-hinting:</p>
  
  <pre><code>use Illuminate\Auth\AuthManager;
  class Basic extends Authorization
  {
  
  public function __construct(AuthManager $auth, $identifier = 'email')
      {
          $this-&gt;auth = $auth;
          $this-&gt;identifier = $identifier;
      }
  </code></pre>
  
  <p>The problem is that if I used the middleware jwt.auth:</p>
  
  <pre><code>app('Dingo\Api\Routing\Router')-&gt;version('v1', ['middleware' =&gt; ['jwt.auth'] , 'prefix' =&gt; 'api', 'providers' =&gt; ['jwt']], function ($api) {
      $api-&gt;get('protected', function () {
  
         $token = JWTAuth::getToken();
         return $token;
      });
  });
  </code></pre>
  
  <p>I get this error:</p>
  
  <pre><code>{"message":"Unresolvable dependency resolving [Parameter #0 [ &lt;required&gt; $app ]] in class Illuminate\\Auth\\AuthManager","status_code":500,"debug":{"line":839,"file":"\/share\/vendor\/illuminate\/container\/Container.php","class":"Illuminate\\Contracts\\Container\\BindingResolutionException"
  </code></pre>
  
  <p>So, the question is, how to properly inject the AuthManager ? why $app was not resolved?</p>