Chris@0: Chris@0: * Chris@0: * For the full copyright and license information, please view the LICENSE Chris@0: * file that was distributed with this source code. Chris@0: */ Chris@0: Chris@0: namespace Symfony\Component\DependencyInjection\LazyProxy\Instantiator; Chris@0: Chris@0: use Symfony\Component\DependencyInjection\ContainerInterface; Chris@0: use Symfony\Component\DependencyInjection\Definition; Chris@0: Chris@0: /** Chris@0: * Lazy proxy instantiator, capable of instantiating a proxy given a container, the Chris@0: * service definitions and a callback that produces the real service instance. Chris@0: * Chris@0: * @author Marco Pivetta Chris@0: */ Chris@0: interface InstantiatorInterface Chris@0: { Chris@0: /** Chris@0: * Instantiates a proxy object. Chris@0: * Chris@14: * @param ContainerInterface $container The container from which the service is being requested Chris@14: * @param Definition $definition The definition of the requested service Chris@14: * @param string $id Identifier of the requested service Chris@14: * @param callable $realInstantiator Zero-argument callback that is capable of producing the real service instance Chris@0: * Chris@0: * @return object Chris@0: */ Chris@0: public function instantiateProxy(ContainerInterface $container, Definition $definition, $id, $realInstantiator); Chris@0: }