소스 검색

[DependencyInjection] added missing methods in ContainerInterface

Fabien Potencier 14 년 전
부모
커밋
0219ec3dbc
1개의 변경된 파일28개의 추가작업 그리고 0개의 파일을 삭제
  1. 28 0
      src/Symfony/Component/DependencyInjection/ContainerInterface.php

+ 28 - 0
src/Symfony/Component/DependencyInjection/ContainerInterface.php

@@ -57,6 +57,34 @@ interface ContainerInterface
      */
     function has($id);
 
+    /**
+     * Gets a parameter.
+     *
+     * @param  string $name The parameter name
+     *
+     * @return mixed  The parameter value
+     *
+     * @throws  \InvalidArgumentException if the parameter is not defined
+     */
+    function getParameter($name);
+
+    /**
+     * Checks if a parameter exists.
+     *
+     * @param  string $name The parameter name
+     *
+     * @return Boolean The presence of parameter in container
+     */
+    function hasParameter($name);
+
+    /**
+     * Sets a parameter.
+     *
+     * @param string $name       The parameter name
+     * @param mixed  $parameters The parameter value
+     */
+    function setParameter($name, $value);
+
     /**
      * Enters the given scope
      *