You are here

public static function FooClass::getInstance in Service Container 7

Same name and namespace in other branches
  1. 7.2 modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/foo.php \Bar\FooClass::getInstance()
5 calls to FooClass::getInstance()
ProjectServiceContainer::getFooService in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php
Gets the 'foo' service.
ProjectServiceContainer::getFooService in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php
Gets the 'foo' service.
ProjectServiceContainer::getServiceFromStaticMethodService in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9_compiled.php
Gets the 'service_from_static_method' service.
ProjectServiceContainer::getServiceFromStaticMethodService in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services9.php
Gets the 'service_from_static_method' service.
ProjectServiceContainer::getServiceWithMethodCallAndFactoryService in modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/php/services19.php
Gets the 'service_with_method_call_and_factory' service.

File

modules/providers/service_container_symfony/lib/Symfony/Component/DependencyInjection/Tests/Fixtures/includes/foo.php, line 16

Class

FooClass

Namespace

Bar

Code

public static function getInstance($arguments = array()) {
  $obj = new self($arguments);
  $obj->called = true;
  return $obj;
}