* * 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:----jo19ug7ap5N13X551qKQ1nFBmmA6H4KCryT8JK90LdHvwcNDrG391FVFt+iREjvOFn2nLuapqmKoBqtqnzmzfwB4wCRWqlDhdF/lPMoBKYbSXkjBO43f4K+LjuQt/gkFVYP02ZthABAXjBVS7u8drPl5sfHUh8Lm2aGNkLbUrhAOfBDyNqbAoJ/Ylpd+mQBeA25Y5cr0dbl8lQL+7Q+CGfsM1l66566hjIQYdg9pkSCu5/8SaAxAzSe/3qWL+YQr4VJ3YQcL2j9XYJ1dbi49eeA7cP3ieW6nKCbq4e26TjWOIcBCf0az9uyVyhhKmppZJWYFYZ5A6Mk7NS7uZlxrkUCN0wkraOom/euqZJBZ++gAA/ieP4fDIaYGisYzirpyP9SPOBW2YrlyfM3+mfeTNuy1AcN6RMDkdSuhVA7akEzrpbOb9m13zhq5wzPP4cgH1x7Xxx3ey65o7aeSnY/2Cm7z7Cl/mZyzyHo8lnj28kVYNM+2V7Io22q7x4WqLTI1gZp5w5XUoodms//rUIfjXlzTMUIouuEhaemWp7e4pFdVf/MYwC8zhPXKZ4EplZuVeUC7KUUmua1TFGg7Kt4amg55bp7eKiMW2iGyYk9B9X227IDyAmBfXkJQR/CshuYtYaH3A3SfaEm4PQlmPeW50jALYglas7oxoWODYxEWspA=----ATTACHMENT:----MjQ1NjM1NTUwNTc2MjIwNCA1MDg4NDUyMTgwNDQyNzc3IDYzNTI5MDk4OTE4NDY2Nzc=