Overview

Namespaces

  • Faulancer
    • Controller
    • Exception
    • Form
      • Validator
        • Type
    • Helper
      • Reflection
    • Http
    • Mail
    • ORM
      • User
    • Service
      • Factory
    • ServiceLocator
    • Session
    • View
      • Helper

Classes

  • ServiceLocator

Interfaces

  • FactoryInterface
  • ServiceInterface
  • ServiceLocatorInterface
  • Overview
  • Namespace
  • Class

Interface ServiceLocatorInterface

Interface ServiceLocatorInterface

Direct known implementers

Faulancer\ServiceLocator\ServiceLocator
Namespace: Faulancer\ServiceLocator
Located at ServiceLocator/ServiceLocatorInterface.php
Methods summary
public Faulancer\ServiceLocator\ServiceInterface
# get( Faulancer\ServiceLocator\string $service = '' )

Get a specific service

Get a specific service

Call example -------------------------------------------------

$service = ServiceLocator::instance()->get(Service::class);

or from controller

$service = $this->getServiceLocator()->get(Service::class);


Parameters

$service

Returns

Faulancer\ServiceLocator\ServiceInterface
API documentation generated by ApiGen