Verzeichnisstruktur phpBB-3.3.16


Veröffentlicht
27.04.2026

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.
Auf den Verzeichnisnamen klicken, dies zeigt nur das Verzeichnis mit Inhalt an

      (Beispiel Datei-Icons)

Auf das Icon klicken um den Quellcode anzuzeigen

ContainerInterface.php

Zuletzt modifiziert: 01.05.2026, 11:26 - Dateigröße: 2.84 KiB


 001  <?php
 002   
 003  /*
 004   * This file is part of the Symfony package.
 005   *
 006   * (c) Fabien Potencier <fabien@symfony.com>
 007   *
 008   * For the full copyright and license information, please view the LICENSE
 009   * file that was distributed with this source code.
 010   */
 011   
 012  namespace Symfony\Component\DependencyInjection;
 013   
 014  use Psr\Container\ContainerInterface as PsrContainerInterface;
 015  use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
 016  use Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException;
 017  use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
 018   
 019  /**
 020   * ContainerInterface is the interface implemented by service container classes.
 021   *
 022   * @author Fabien Potencier <fabien@symfony.com>
 023   * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 024   */
 025  interface ContainerInterface extends PsrContainerInterface
 026  {
 027      const EXCEPTION_ON_INVALID_REFERENCE = 1;
 028      const NULL_ON_INVALID_REFERENCE = 2;
 029      const IGNORE_ON_INVALID_REFERENCE = 3;
 030      const IGNORE_ON_UNINITIALIZED_REFERENCE = 4;
 031   
 032      /**
 033       * Sets a service.
 034       *
 035       * @param string      $id      The service identifier
 036       * @param object|null $service The service instance
 037       */
 038      public function set($id, $service);
 039   
 040      /**
 041       * Gets a service.
 042       *
 043       * @param string $id              The service identifier
 044       * @param int    $invalidBehavior The behavior when the service does not exist
 045       *
 046       * @return object|null The associated service
 047       *
 048       * @throws ServiceCircularReferenceException When a circular reference is detected
 049       * @throws ServiceNotFoundException          When the service is not defined
 050       *
 051       * @see Reference
 052       */
 053      public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
 054   
 055      /**
 056       * Returns true if the given service is defined.
 057       *
 058       * @param string $id The service identifier
 059       *
 060       * @return bool true if the service is defined, false otherwise
 061       */
 062      public function has($id);
 063   
 064      /**
 065       * Check for whether or not a service has been initialized.
 066       *
 067       * @param string $id
 068       *
 069       * @return bool true if the service has been initialized, false otherwise
 070       */
 071      public function initialized($id);
 072   
 073      /**
 074       * Gets a parameter.
 075       *
 076       * @param string $name The parameter name
 077       *
 078       * @return mixed The parameter value
 079       *
 080       * @throws InvalidArgumentException if the parameter is not defined
 081       */
 082      public function getParameter($name);
 083   
 084      /**
 085       * Checks if a parameter exists.
 086       *
 087       * @param string $name The parameter name
 088       *
 089       * @return bool The presence of parameter in container
 090       */
 091      public function hasParameter($name);
 092   
 093      /**
 094       * Sets a parameter.
 095       *
 096       * @param string $name  The parameter name
 097       * @param mixed  $value The parameter value
 098       */
 099      public function setParameter($name, $value);
 100  }
 101