Interface ServiceLocatorInterface
Interface ServiceLocatorInterface
Methods summary
public
Faulancer\ServiceLocator\ServiceInterface
|
#
get( Faulancer\ServiceLocator\string $service = '' )
Get a specific service
Call example -------------------------------------------------
$service = ServiceLocator::instance()->get(Service::class);
or from controller
$service = $this->getServiceLocator()->get(Service::class);
Parameters
Returns
|