Verzeichnisstruktur phpBB-3.2.0


Veröffentlicht
06.01.2017

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: 09.10.2024, 12:54 - Dateigröße: 3.87 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 Symfony\Component\DependencyInjection\Exception\InvalidArgumentException;
 015  use Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException;
 016  use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException;
 017   
 018  /**
 019   * ContainerInterface is the interface implemented by service container classes.
 020   *
 021   * @author Fabien Potencier <fabien@symfony.com>
 022   * @author Johannes M. Schmitt <schmittjoh@gmail.com>
 023   */
 024  interface ContainerInterface
 025  {
 026      const EXCEPTION_ON_INVALID_REFERENCE = 1;
 027      const NULL_ON_INVALID_REFERENCE = 2;
 028      const IGNORE_ON_INVALID_REFERENCE = 3;
 029      const SCOPE_CONTAINER = 'container';
 030      const SCOPE_PROTOTYPE = 'prototype';
 031   
 032      /**
 033       * Sets a service.
 034       *
 035       * Note: The $scope parameter is deprecated since version 2.8 and will be removed in 3.0.
 036       *
 037       * @param string $id      The service identifier
 038       * @param object $service The service instance
 039       * @param string $scope   The scope of the service
 040       */
 041      public function set($id, $service, $scope = self::SCOPE_CONTAINER);
 042   
 043      /**
 044       * Gets a service.
 045       *
 046       * @param string $id              The service identifier
 047       * @param int    $invalidBehavior The behavior when the service does not exist
 048       *
 049       * @return object The associated service
 050       *
 051       * @throws ServiceCircularReferenceException When a circular reference is detected
 052       * @throws ServiceNotFoundException          When the service is not defined
 053       *
 054       * @see Reference
 055       */
 056      public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE);
 057   
 058      /**
 059       * Returns true if the given service is defined.
 060       *
 061       * @param string $id The service identifier
 062       *
 063       * @return bool true if the service is defined, false otherwise
 064       */
 065      public function has($id);
 066   
 067      /**
 068       * Gets a parameter.
 069       *
 070       * @param string $name The parameter name
 071       *
 072       * @return mixed The parameter value
 073       *
 074       * @throws InvalidArgumentException if the parameter is not defined
 075       */
 076      public function getParameter($name);
 077   
 078      /**
 079       * Checks if a parameter exists.
 080       *
 081       * @param string $name The parameter name
 082       *
 083       * @return bool The presence of parameter in container
 084       */
 085      public function hasParameter($name);
 086   
 087      /**
 088       * Sets a parameter.
 089       *
 090       * @param string $name  The parameter name
 091       * @param mixed  $value The parameter value
 092       */
 093      public function setParameter($name, $value);
 094   
 095      /**
 096       * Enters the given scope.
 097       *
 098       * @param string $name
 099       *
 100       * @deprecated since version 2.8, to be removed in 3.0.
 101       */
 102      public function enterScope($name);
 103   
 104      /**
 105       * Leaves the current scope, and re-enters the parent scope.
 106       *
 107       * @param string $name
 108       *
 109       * @deprecated since version 2.8, to be removed in 3.0.
 110       */
 111      public function leaveScope($name);
 112   
 113      /**
 114       * Adds a scope to the container.
 115       *
 116       * @param ScopeInterface $scope
 117       *
 118       * @deprecated since version 2.8, to be removed in 3.0.
 119       */
 120      public function addScope(ScopeInterface $scope);
 121   
 122      /**
 123       * Whether this container has the given scope.
 124       *
 125       * @param string $name
 126       *
 127       * @return bool
 128       *
 129       * @deprecated since version 2.8, to be removed in 3.0.
 130       */
 131      public function hasScope($name);
 132   
 133      /**
 134       * Determines whether the given scope is currently active.
 135       *
 136       * It does however not check if the scope actually exists.
 137       *
 138       * @param string $name
 139       *
 140       * @return bool
 141       *
 142       * @deprecated since version 2.8, to be removed in 3.0.
 143       */
 144      public function isScopeActive($name);
 145  }
 146