| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 29 | public function registerBindings(IContainer $container) |
||
| 30 | { |
||
| 31 | /** @var UuidV4Generator $uuidGenerator */ |
||
| 32 | $uuidGenerator = $container->resolve(UuidV4Generator::class); |
||
| 33 | |||
| 34 | /** @var ConnectionPool $connectionPool */ |
||
| 35 | $connectionPool = $container->resolve(ConnectionPool::class); |
||
| 36 | |||
| 37 | // Init our repositories |
||
| 38 | $accessTokenRepository = new Repository\AccessToken($uuidGenerator, $connectionPool); |
||
| 39 | |||
| 40 | $publicKeyPath = getenv(Env::OAUTH2_PUBLIC_KEY_PATH); |
||
| 41 | |||
| 42 | $server = new ResourceServer( |
||
| 43 | $accessTokenRepository, |
||
| 44 | $publicKeyPath |
||
| 45 | ); |
||
| 46 | |||
| 47 | $container->bindInstance(ResourceServer::class, $server); |
||
| 48 | } |
||
| 50 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths