| 
2 | 2 | 
 
  | 
3 | 3 | declare(strict_types=1);  | 
4 | 4 | 
 
  | 
5 |  | -use League\Bundle\OAuth2ServerBundle\Controller\DeviceCodeController;  | 
6 |  | -use League\Bundle\OAuth2ServerBundle\Manager\DeviceCodeManagerInterface;  | 
7 |  | -use League\Bundle\OAuth2ServerBundle\Repository\DeviceCodeRepository;  | 
8 |  | -use League\OAuth2\Server\Grant\DeviceCodeGrant;  | 
9 |  | -use League\OAuth2\Server\Repositories\DeviceCodeRepositoryInterface;  | 
10 | 5 | use function Symfony\Component\DependencyInjection\Loader\Configurator\abstract_arg;  | 
11 | 6 | use function Symfony\Component\DependencyInjection\Loader\Configurator\param;  | 
12 | 7 | use function Symfony\Component\DependencyInjection\Loader\Configurator\service;  | 
 | 
20 | 15 | use League\Bundle\OAuth2ServerBundle\Command\ListClientsCommand;  | 
21 | 16 | use League\Bundle\OAuth2ServerBundle\Command\UpdateClientCommand;  | 
22 | 17 | use League\Bundle\OAuth2ServerBundle\Controller\AuthorizationController;  | 
 | 18 | +use League\Bundle\OAuth2ServerBundle\Controller\DeviceCodeController;  | 
23 | 19 | use League\Bundle\OAuth2ServerBundle\Controller\TokenController;  | 
24 | 20 | use League\Bundle\OAuth2ServerBundle\Converter\ScopeConverter;  | 
25 | 21 | use League\Bundle\OAuth2ServerBundle\Converter\ScopeConverterInterface;  | 
 | 
30 | 26 | use League\Bundle\OAuth2ServerBundle\Manager\AccessTokenManagerInterface;  | 
31 | 27 | use League\Bundle\OAuth2ServerBundle\Manager\AuthorizationCodeManagerInterface;  | 
32 | 28 | use League\Bundle\OAuth2ServerBundle\Manager\ClientManagerInterface;  | 
 | 29 | +use League\Bundle\OAuth2ServerBundle\Manager\DeviceCodeManagerInterface;  | 
33 | 30 | use League\Bundle\OAuth2ServerBundle\Manager\InMemory\ScopeManager;  | 
34 | 31 | use League\Bundle\OAuth2ServerBundle\Manager\RefreshTokenManagerInterface;  | 
35 | 32 | use League\Bundle\OAuth2ServerBundle\Manager\ScopeManagerInterface;  | 
36 | 33 | use League\Bundle\OAuth2ServerBundle\OAuth2Events;  | 
37 | 34 | use League\Bundle\OAuth2ServerBundle\Repository\AuthCodeRepository;  | 
38 | 35 | use League\Bundle\OAuth2ServerBundle\Repository\ClientRepository;  | 
 | 36 | +use League\Bundle\OAuth2ServerBundle\Repository\DeviceCodeRepository;  | 
39 | 37 | use League\Bundle\OAuth2ServerBundle\Repository\RefreshTokenRepository;  | 
40 | 38 | use League\Bundle\OAuth2ServerBundle\Repository\ScopeRepository;  | 
41 | 39 | use League\Bundle\OAuth2ServerBundle\Repository\UserRepository;  | 
 | 
47 | 45 | use League\OAuth2\Server\EventEmitting\EventEmitter;  | 
48 | 46 | use League\OAuth2\Server\Grant\AuthCodeGrant;  | 
49 | 47 | use League\OAuth2\Server\Grant\ClientCredentialsGrant;  | 
 | 48 | +use League\OAuth2\Server\Grant\DeviceCodeGrant;  | 
50 | 49 | use League\OAuth2\Server\Grant\ImplicitGrant;  | 
51 | 50 | use League\OAuth2\Server\Grant\PasswordGrant;  | 
52 | 51 | use League\OAuth2\Server\Grant\RefreshTokenGrant;  | 
53 | 52 | use League\OAuth2\Server\Repositories\AccessTokenRepositoryInterface;  | 
54 | 53 | use League\OAuth2\Server\Repositories\AuthCodeRepositoryInterface;  | 
55 | 54 | use League\OAuth2\Server\Repositories\ClientRepositoryInterface;  | 
 | 55 | +use League\OAuth2\Server\Repositories\DeviceCodeRepositoryInterface;  | 
56 | 56 | use League\OAuth2\Server\Repositories\RefreshTokenRepositoryInterface;  | 
57 | 57 | use League\OAuth2\Server\Repositories\ScopeRepositoryInterface;  | 
58 | 58 | use League\OAuth2\Server\Repositories\UserRepositoryInterface;  | 
 | 
216 | 216 |                 service(RefreshTokenRepositoryInterface::class),  | 
217 | 217 |                 null,  | 
218 | 218 |                 null,  | 
219 |  | -                null  | 
 | 219 | +                null,  | 
220 | 220 |             ])  | 
221 | 221 |         ->alias(DeviceCodeGrant::class, 'league.oauth2_server.grant.device_code')  | 
222 | 222 | 
 
  | 
 | 
244 | 244 |         ->set('league.oauth2_server.controller.device_code', DeviceCodeController::class)  | 
245 | 245 |             ->args([  | 
246 | 246 |                 service(AuthorizationServer::class),  | 
247 |  | -                service(EventDispatcherInterface::class),  | 
248 |  | -                service(AuthorizationRequestResolveEventFactory::class),  | 
249 |  | -                service(UserConverterInterface::class),  | 
250 |  | -                service(ClientManagerInterface::class),  | 
251 | 247 |                 service('league.oauth2_server.factory.psr_http'),  | 
252 | 248 |                 service('league.oauth2_server.factory.http_foundation'),  | 
253 | 249 |                 service('league.oauth2_server.factory.psr17'),  | 
 | 
0 commit comments