NoraBear Package API Documentation

EndpointSchemeCollectionProvider
in package
implements ProviderInterface

Read onlyYes
FinalYes

Endpoint SchemeCollection Provider

カスタムスキームコレクションを提供します。 'api://', 'app://', 'page://' を Resource\Endpoint 名前空間にマッピングします。

Tags
example
// Moduleでのバインディング
use Ray\Di\AbstractModule;
use BEAR\Resource\SchemeCollectionInterface;

class AppModule extends AbstractModule
{
    protected function configure(): void
    {
        $this->bind(SchemeCollectionInterface::class)
            ->toProvider(EndpointSchemeCollectionProvider::class);
    }
}
implements

Table of Contents

Interfaces

ProviderInterface

Properties

$appName  : string
$injector  : InjectorInterface

Methods

__construct()  : mixed
get()  : SchemeCollection
SchemeCollectionを生成

Properties

Methods

__construct()

public __construct(string $appName, InjectorInterface $injector) : mixed
Parameters
$appName : string
$injector : InjectorInterface

get()

SchemeCollectionを生成

public get() : SchemeCollection
  • api://self → EndpointAdapter (Resource\Endpoint*)
  • app://self → EndpointAdapter (Resource\Endpoint*)
  • page://self → EndpointAdapter (Resource\Endpoint*)
  • http:// → HttpAdapter
Return values
SchemeCollection

        
On this page

Search results