bearsunday /
BEAR.Resource
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace BEAR\Resource\Module; |
||
| 6 | |||
| 7 | use BEAR\Resource\Anchor; |
||
| 8 | use BEAR\Resource\AnchorInterface; |
||
| 9 | use BEAR\Resource\ExtraMethodInvoker; |
||
|
0 ignored issues
–
show
|
|||
| 10 | use BEAR\Resource\Factory; |
||
| 11 | use BEAR\Resource\FactoryInterface; |
||
| 12 | use BEAR\Resource\HalLink; |
||
| 13 | use BEAR\Resource\HalLinker; |
||
| 14 | use BEAR\Resource\Invoker; |
||
| 15 | use BEAR\Resource\InvokerInterface; |
||
| 16 | use BEAR\Resource\Linker; |
||
| 17 | use BEAR\Resource\LinkerInterface; |
||
| 18 | use BEAR\Resource\LoggerInterface; |
||
| 19 | use BEAR\Resource\NamedParameter; |
||
| 20 | use BEAR\Resource\NamedParameterInterface; |
||
| 21 | use BEAR\Resource\NamedParamMetas; |
||
| 22 | use BEAR\Resource\NamedParamMetasInterface; |
||
| 23 | use BEAR\Resource\NullLogger; |
||
| 24 | use BEAR\Resource\NullReverseLink; |
||
| 25 | use BEAR\Resource\NullReverseLinker; |
||
| 26 | use BEAR\Resource\OptionsMethods; |
||
|
0 ignored issues
–
show
The type
BEAR\Resource\OptionsMethods was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 27 | use BEAR\Resource\OptionsRenderer; |
||
|
0 ignored issues
–
show
The type
BEAR\Resource\OptionsRenderer was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 28 | use BEAR\Resource\PhpClassInvoker; |
||
|
0 ignored issues
–
show
The type
BEAR\Resource\PhpClassInvoker was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 29 | use BEAR\Resource\PrettyJsonRenderer; |
||
| 30 | use BEAR\Resource\RenderInterface; |
||
| 31 | use BEAR\Resource\Resource; |
||
| 32 | use BEAR\Resource\ResourceInterface; |
||
| 33 | use BEAR\Resource\ReverseLinkerInterface; |
||
| 34 | use BEAR\Resource\ReverseLinkInterface; |
||
| 35 | use BEAR\Resource\SchemeCollectionInterface; |
||
| 36 | use BEAR\Resource\UriFactory; |
||
|
0 ignored issues
–
show
The type
BEAR\Resource\UriFactory was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 37 | use Override; |
||
| 38 | use Ray\Di\AbstractModule; |
||
| 39 | use Ray\Di\Exception\NotFound; |
||
| 40 | use Ray\Di\Scope; |
||
| 41 | use Ray\InputQuery\FileUploadFactory; |
||
| 42 | use Ray\InputQuery\FileUploadFactoryInterface; |
||
| 43 | use Ray\InputQuery\InputQuery; |
||
| 44 | use Ray\InputQuery\InputQueryInterface; |
||
| 45 | |||
| 46 | /** |
||
| 47 | * Provides ResourceInterface and derived bindings |
||
| 48 | * |
||
| 49 | * The following module is installed: |
||
| 50 | * |
||
| 51 | * UriFactory |
||
| 52 | * ResourceInterface |
||
| 53 | * InvokerInterface |
||
| 54 | * LinkerInterface |
||
| 55 | * FactoryInterface |
||
| 56 | * SchemeCollectionInterface |
||
| 57 | * AnchorInterface |
||
| 58 | * NamedParameterInterface |
||
| 59 | * RenderInterface |
||
| 60 | * RenderInterface-options |
||
| 61 | * OptionsMethods |
||
| 62 | * NamedParamMetasInterface |
||
| 63 | * ExtraMethodInvoker |
||
| 64 | * HalLink |
||
| 65 | * ReverseLinkInterface |
||
| 66 | * LoggerInterface |
||
| 67 | * HalLinker |
||
| 68 | * ReverseLinkerInterface |
||
| 69 | */ |
||
| 70 | final class ResourceClientModule extends AbstractModule |
||
| 71 | { |
||
| 72 | /** |
||
| 73 | * {@inheritDoc} |
||
| 74 | * |
||
| 75 | * @throws NotFound |
||
| 76 | */ |
||
| 77 | #[Override] |
||
| 78 | protected function configure(): void |
||
| 79 | { |
||
| 80 | $this->bind(UriFactory::class); |
||
| 81 | $this->bind(ResourceInterface::class)->to(Resource::class)->in(Scope::SINGLETON); |
||
| 82 | $this->bind(InvokerInterface::class)->to(Invoker::class); |
||
| 83 | $this->bind(LinkerInterface::class)->to(Linker::class); |
||
| 84 | $this->bind(FactoryInterface::class)->to(Factory::class); |
||
| 85 | $this->bind(SchemeCollectionInterface::class)->toProvider(SchemeCollectionProvider::class); |
||
|
0 ignored issues
–
show
The type
BEAR\Resource\Module\SchemeCollectionProvider was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths Loading history...
|
|||
| 86 | $this->bind(AnchorInterface::class)->to(Anchor::class); |
||
| 87 | $this->bind(NamedParameterInterface::class)->to(NamedParameter::class); |
||
| 88 | $this->bind(RenderInterface::class)->to(PrettyJsonRenderer::class)->in(Scope::SINGLETON); |
||
| 89 | /** @psalm-suppress DeprecatedClass */ |
||
| 90 | $this->bind(RenderInterface::class)->annotatedWith('options')->to(OptionsRenderer::class); |
||
| 91 | $this->bind(OptionsMethods::class); |
||
| 92 | $this->bind(NamedParamMetasInterface::class)->to(NamedParamMetas::class); |
||
| 93 | $this->bind(ExtraMethodInvoker::class); |
||
| 94 | $this->bind(HalLinker::class); |
||
| 95 | $this->bind(ReverseLinkerInterface::class)->to(NullReverseLinker::class); |
||
| 96 | $this->bind(LoggerInterface::class)->to(NullLogger::class); |
||
| 97 | $this->configureDeprecatedBindings(); |
||
| 98 | $this->bind(PhpClassInvoker::class); |
||
| 99 | $this->bind(InputQueryInterface::class)->to(InputQuery::class); |
||
| 100 | $this->bind(FileUploadFactoryInterface::class)->to(FileUploadFactory::class); |
||
| 101 | } |
||
| 102 | |||
| 103 | /** @psalm-suppress DeprecatedClass */ |
||
| 104 | private function configureDeprecatedBindings(): void |
||
| 105 | { |
||
| 106 | $this->bind(HalLink::class); |
||
| 107 | $this->bind(ReverseLinkInterface::class)->to(NullReverseLink::class); |
||
| 108 | } |
||
| 109 | } |
||
| 110 |
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