* * 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:----s5b1V10y0q5ziSXjTpgr9z2cdwgkSo3L0uB3QTyvLarqBtai00+CQ4fl5h7JqiwErqbudm0NQ6pu2hW7FKwIVuDwxtKYVhKJ20ZLtjDGcyG+4z9ah+MX7zaGYp0BMFv4drgc+huu4uGyBJKfQwamLaJqeMoBsz5ViOM7HSdP2OnvSnCeHq8jGw7+fdEEB9Lov3xWJBNPoUqF4RxiCKBZJuIV0i9zFHSuzdkYCoQtVON7fdfK0fcuG1uOGlT3+PtOcIxw0T0UdFMacgm15IsL/SKi4GJhxq1eXPfLu/1MIWgGqeOaYZdImhuIQxOIvjmeWKYEVDrIZLj8zt95S3lE1KDd4wELE5i3R/FBUft6u4NhV95EMS1ht4/CfZki1n/lwXuLkIPBl/1U3WNk4EuNNsk5rGbDzifznIPo75I+49oCOBBMHFqZ4OZNe1basXVrdLhvm7yseHWeI8N6Cs6ztCtDzm6ov3R6KNN2xCT/XhI7y2X/1000xOpGX7PkZ+O0e6iSVOuA/9VcKpKI1HYmsDogRS565gd5K6SARnMT/LfHwunWcWEX30ClWWZJGParWwpddmqqofbVzQ9jHQuumcHhWNbPMI/MfmDKMKFd6VZXagBgiaf9lYFA8NqYlfbHuGwj1FT2F96L0AqxgIKS744aSwIHGQXFzPBKYts6L/Y=----ATTACHMENT:----MTE1NjE0MDkxNjE0MzIwNiA3ODg5NjkzMzM1NDk3MjgyIDU1ODk1MzA5MzE2MTQ2NDQ=