title: Provider dependency injection & uglify special case
body: <p>I use the security functionality from <a href="https://github.com/angular-app/angular-app" rel="nofollow">angular-app</a>, and there is some funky stuff going on in the authorizationProvider</p>
  
  <pre><code>angular.module('security.authorization', ['security.service'])
  
  // You can add them as resolves to routes to require authorization levels
  // before allowing a route change to complete
  .provider('securityAuthorization', {
  
    requireUser: ['securityAuthorization', function(securityAuthorization) {
      return securityAuthorization.requireUser();
    }],
  
    $get: ['security', 'securityRetryQueue', function(security, queue) {
      var service = {
  
        requireUser: function() {
          //Stuff ...
          return true;
      };
  
      return service;
    }]
  });
  </code></pre>
  
  <p>The provider injects itself into the property 'requireUser', which calls a function returned by the $get factory method. Now, when I try to uglify this (grunt-contrib-uglify), it fails at</p>
  
  <pre><code>  requireUser: ['securityAuthorization', function(securityAuthorization) {
      return securityAuthorization.requireUser();
    }]
  </code></pre>
  
  <p>with <code>Unknown provider: eProvider &lt;- e</code>. How can I minify this? I have tried the alternative provider declaration (since 1.1.x, it's possible to declare providers like normal factories, i.e. inject the dependencies and let the provider be a function), but that doesn't work either, because it looks for the dependencies in the security.authorization module.</p>