[ Index ]

PHP Cross Reference of phpBB-3.3.12-deutsch

title

Body

[close]

/phpbb/di/ -> service_collection.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 122 lines (2 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

service_collection:: (7 methods):
  __construct()
  getIterator()
  offsetGet()
  add()
  add_service_class()
  get_service_classes()
  get_by_class()


Class: service_collection  - X-Ref

Collection of services to be configured at container compile time.

__construct(ContainerInterface $container)   X-Ref
Constructor

param: ContainerInterface $container Container object

getIterator()   X-Ref
{@inheritdoc}


offsetGet($index)   X-Ref
{@inheritdoc}


add($name)   X-Ref
Add a service to the collection

return: void
param: string $name The service name

add_service_class($service_id, $class)   X-Ref
Add a service's class to the collection

param: string    $service_id
param: string    $class

get_service_classes()   X-Ref
Get services' classes

return: array

get_by_class($class)   X-Ref
Returns the service associated to a class

return: mixed



Generated: Sun Jun 23 12:25:44 2024 Cross-referenced by PHPXref 0.7.1