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/2.7/Symfony/Component/DependencyInjection/LazyProxy/Instantiator/RealServiceInstantiator.html