ICanBoogie
  • Documentation
  • API Reference
  • Service master
Namespaces
  • ICanBoogie
    • Service
Classes
  • ServiceProvider
  • ServiceReference

Class ServiceProvider

Namespace: ICanBoogie\Service
Located at ServiceProvider.php

Methods summary

public static define( callable $provider ) : callable

Define the service provider.

Define the service provider.

Parameters

$provider

Returns

callable
The previous provider, or null if none was defined.
public static defined( void ) : callable|null

Return the current provider.

Return the current provider.

Returns

callable|null
public static undefine( void )

Undefine the provider.

Undefine the provider.

public static provide( string $id ) : mixed

Return a service.

Return a service.

Parameters

$id
Service identifier.

Returns

mixed
Service master – Check on GitHub – API documentation generated by ApiGen