RealServiceInstantiator
class RealServiceInstantiator implements InstantiatorInterface
{@inheritdoc}
Noop прокси-инстанциатор — просто производит реальную службу вместо прокси-экземпляра.
Методы
| object | instantiateProxy(ContainerInterface $container, Definition $definition, string $id, callable $realInstantiator) Инициализирует объект прокси. |
Подробности
object instantiateProxy(ContainerInterface $container, Definition $definition, string $id, callable $realInstantiator)
Инициализирует объект прокси.
Параметры
| ContainerInterface | $container | контейнер, из которого запрашивается служба |
| Definition | $definition | определение запрашиваемой службы |
| string | $id | идентификатор запрашиваемой службы |
| callable | $realInstantiator | обратный вызов без аргументов, способный производить реальный экземпляр службы |
Возвращаемое значение
| object |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/RealServiceInstantiator.html