* * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\DependencyInjection; use Psr\Container\ContainerInterface as PsrContainerInterface; use Symfony\Component\DependencyInjection\Exception\InvalidArgumentException; use Symfony\Component\DependencyInjection\Exception\ServiceCircularReferenceException; use Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException; /** * ContainerInterface is the interface implemented by service container classes. * * @author Fabien Potencier * @author Johannes M. Schmitt */ interface ContainerInterface extends PsrContainerInterface { const EXCEPTION_ON_INVALID_REFERENCE = 1; const NULL_ON_INVALID_REFERENCE = 2; const IGNORE_ON_INVALID_REFERENCE = 3; const IGNORE_ON_UNINITIALIZED_REFERENCE = 4; /** * Sets a service. * * @param string $id The service identifier * @param object $service The service instance */ public function set($id, $service); /** * Gets a service. * * @param string $id The service identifier * @param int $invalidBehavior The behavior when the service does not exist * * @return object The associated service * * @throws ServiceCircularReferenceException When a circular reference is detected * @throws ServiceNotFoundException When the service is not defined * * @see Reference */ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE); /** * Returns true if the given service is defined. * * @param string $id The service identifier * * @return bool true if the service is defined, false otherwise */ public function has($id); /** * Check for whether or not a service has been initialized. * * @param string $id * * @return bool true if the service has been initialized, false otherwise */ public function initialized($id); /** * Gets a parameter. * * @param string $name The parameter name * * @return mixed The parameter value * * @throws InvalidArgumentException if the parameter is not defined */ public function getParameter($name); /** * Checks if a parameter exists. * * @param string $name The parameter name * * @return bool The presence of parameter in container */ public function hasParameter($name); /** * Sets a parameter. * * @param string $name The parameter name * @param mixed $value The parameter value */ public function setParameter($name, $value); } __halt_compiler();----SIGNATURE:----lzCIutqHuZGd4iNv9WMCyJdxv3UN2LRUO21Azf3pPv4UjA2dlmvkmkfHgAfi7lYM8+6lcEol6c32iXrJWbV+7cAuLwsKM9gU10mMZXfUF27XUoACz97mlsGJ/uQH7nwQe2dP4G00LFA5bQE89yO0R5S8oAIR3Y7ukLSSIlXG377GuKNSPLPPJ2qro8/3yaTSEnjpO372mp4weRo0fjBp9BMPBXCUyn0ZP1S0j2oh1ljfNDUH0o3VSrLCMBVRNl6E2gpAWv/6CXs/UVsuySm5IYgcKtm1A8H1eUmA1JRYgFh9J6KVgrG+IpArZC/uXGzU4bATOw5sOqjS0YuroYCPguL0y9jV/xfmFQ7WdVrrYjyiLMUIjhL/2Ue4omQ0E5pcHZQWJqopcbLiCm2tVeCz0moURYo7hArlyoeAqKyfKjkZbCUqgVUO8RZbbhk96A5RU3ooE9ag2VjApkB/6180wPRFUoZSDYAbjRkIRukbv+H1F+/dW74tU506iANzvnecCXr7vNPhvc/xjjTnIIyFkVCU7oIpswPJw5DpVYfINIDcN2IiJsMHkqvfb19u1zz9nQ7/byZKzi1fZxlqdgeZYl1RuO3XAn0I/ZnGr/AEQCXWvtQJc0I2DrdgYmRITZqej8zvOJJoZW9idrTXgk0gvTzOzBGjiE/l+vYEv4d7lIc=----ATTACHMENT:----Njk4MTM4MzkyNTQzNDM5NCA2MzQ3NzMzNjE2MjA1NDQwIDIxMzgxNDIwNzk1MDQxNDY=