Verzeichnisstruktur phpBB-3.3.15
- Veröffentlicht
- 28.08.2024
So funktioniert es
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
ServiceSubscriberInterface.php
01 <?php
02
03 /*
04 * This file is part of the Symfony package.
05 *
06 * (c) Fabien Potencier <fabien@symfony.com>
07 *
08 * For the full copyright and license information, please view the LICENSE
09 * file that was distributed with this source code.
10 */
11
12 namespace Symfony\Component\DependencyInjection;
13
14 /**
15 * A ServiceSubscriber exposes its dependencies via the static {@link getSubscribedServices} method.
16 *
17 * The getSubscribedServices method returns an array of service types required by such instances,
18 * optionally keyed by the service names used internally. Service types that start with an interrogation
19 * mark "?" are optional, while the other ones are mandatory service dependencies.
20 *
21 * The injected service locators SHOULD NOT allow access to any other services not specified by the method.
22 *
23 * It is expected that ServiceSubscriber instances consume PSR-11-based service locators internally.
24 * This interface does not dictate any injection method for these service locators, although constructor
25 * injection is recommended.
26 *
27 * @author Nicolas Grekas <p@tchwork.com>
28 */
29 interface ServiceSubscriberInterface
30 {
31 /**
32 * Returns an array of service types required by such instances, optionally keyed by the service names used internally.
33 *
34 * For mandatory dependencies:
35 *
36 * * ['logger' => 'Psr\Log\LoggerInterface'] means the objects use the "logger" name
37 * internally to fetch a service which must implement Psr\Log\LoggerInterface.
38 * * ['Psr\Log\LoggerInterface'] is a shortcut for
39 * * ['Psr\Log\LoggerInterface' => 'Psr\Log\LoggerInterface']
40 *
41 * otherwise:
42 *
43 * * ['logger' => '?Psr\Log\LoggerInterface'] denotes an optional dependency
44 * * ['?Psr\Log\LoggerInterface'] is a shortcut for
45 * * ['Psr\Log\LoggerInterface' => '?Psr\Log\LoggerInterface']
46 *
47 * @return array The required service types, optionally keyed by service names
48 */
49 public static function getSubscribedServices();
50 }
51