Namespaces

  • Nette
    • Application
    • Caching
    • Collections
    • Config
    • Forms
    • IO
    • Loaders
    • Mail
    • Reflection
    • Security
    • Templates
    • Web
  • None
  • PHP

Classes

  • ArrayTools
  • Callback
  • Component
  • ComponentContainer
  • Configurator
  • DateTime
  • Debug
  • Environment
  • Framework
  • FreezableObject
  • GenericRecursiveIterator
  • Image
  • ImageMagick
  • InstanceFilterIterator
  • Object
  • ObjectMixin
  • Paginator
  • RecursiveComponentIterator
  • ServiceLocator
  • SmartCachingIterator
  • String
  • Tools

Interfaces

  • IComponent
  • IComponentContainer
  • IDebuggable
  • IServiceLocator
  • ITranslator

Exceptions

  • AmbiguousServiceException
  • Overview
  • Namespace
  • Class
  • Tree
  • Other releases

Interface IServiceLocator

The service locator.

Direct known implementers

Nette\ServiceLocator
Namespace: Nette
Author: David Grudl
Located at Environment/IServiceLocator.php
Methods summary
public
# addService( string $name, mixed $service, boolean $singleton = TRUE, array $options = NULL )

Adds the specified service to the service container.

Adds the specified service to the service container.

Parameters

$name
string
service name
$service
mixed
object, class name or factory callback
$singleton
boolean
is singleton?
$options
array
factory options
public mixed
# getService( string $name, array $options = NULL )

Gets the service object of the specified type.

Gets the service object of the specified type.

Parameters

$name
string
service name
$options
array
options in case service is not singleton

Returns

mixed
public
# removeService( $name )

Removes the specified service type from the service container.

Removes the specified service type from the service container.

public boolean
# hasService( $name )

Exists the service?

Exists the service?

Returns

boolean
Nette Framework 0.9.7 API documentation generated by ApiGen 2.3.0