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

Class ServiceLocator

Class ServiceLocator

Faulancer\ServiceLocator\ServiceLocator implements Faulancer\ServiceLocator\ServiceLocatorInterface
Namespace: Faulancer\ServiceLocator
Located at ServiceLocator/ServiceLocator.php
Methods summary
public static Faulancer\ServiceLocator\ServiceLocator
# instance( )

Return the instance of the service locator

Return the instance of the service locator

Returns

Faulancer\ServiceLocator\ServiceLocator
public Faulancer\ServiceLocator\ServiceInterface|Faulancer\ServiceLocator\FactoryInterface
# get( Faulancer\ServiceLocator\string $service = '', boolean $shared = true )

Try to get the service. Returns per default always a new instance of the service/factory.

Try to get the service. Returns per default always a new instance of the service/factory.

Parameters

$service
$shared

Returns

Faulancer\ServiceLocator\ServiceInterface|Faulancer\ServiceLocator\FactoryInterface

Throws

Faulancer\Exception\ServiceNotFoundException

Implementation of

Faulancer\ServiceLocator\ServiceLocatorInterface::get()
API documentation generated by ApiGen