final class ApiServiceProvider implements ServiceProviderInterface, BootableServiceProviderInterface (View source)

Composes API configuration, endpoint registration, authorization and response services.

HTTP boot contributes middleware and routes, while CLI boot only validates endpoint providers.

Methods

void

Registers configuration, shared state and interface bindings while leaving stateless concrete services to autowiring.

void
void
boot(ContainerInterface $container)

Registers enabled framework and application endpoints for HTTP or validates providers for CLI.

void

Details

register

void register(ContainerBuilderInterface $container)

Registers configuration, shared state and interface bindings while leaving stateless concrete services to autowiring.

Parameters

ContainerBuilderInterface $container

Container definition builder.

Return Value

void

boot

void boot(ContainerInterface $container)

Registers enabled framework and application endpoints for HTTP or validates providers for CLI.

Parameters

ContainerInterface $container

Return Value

void

Exceptions

LogicException