Skip to content

Commit

Permalink
[DependencyInjection] Add initialized() to the ContainerInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
znerol committed Jul 26, 2015
1 parent 803144d commit bfddac3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion src/Symfony/Component/DependencyInjection/Container.php
Expand Up @@ -61,7 +61,7 @@
*
* @api
*/
class Container implements IntrospectableContainerInterface, ResettableContainerInterface
class Container implements ResettableContainerInterface
{
/**
* @var ParameterBagInterface
Expand Down
Expand Up @@ -72,6 +72,15 @@ public function get($id, $invalidBehavior = self::EXCEPTION_ON_INVALID_REFERENCE
*/
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.
*
Expand Down
Expand Up @@ -16,15 +16,10 @@
* for containers, allowing logic to be implemented based on a Container's state.
*
* @author Evan Villemez <evillemez@gmail.com>
*
* @deprecated Since version 3.0, to be removed in 4.0. Use ContainerInterface
* instead.
*/
interface IntrospectableContainerInterface extends ContainerInterface
{
/**
* 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);
}

0 comments on commit bfddac3

Please sign in to comment.