DelegatingEngine::getEngine()

EngineInterface getEngine(string|TemplateReferenceInterface $name) Get an engine able to render the given template. Parameters string|TemplateReferenceInterface $name A template name or a TemplateReferenceInterface instance Return Value EngineInterface The engine Exceptions RuntimeException if no engine able to work with the template is found

DelegatingEngine

class DelegatingEngine extends DelegatingEngine implements EngineInterface DelegatingEngine selects an engine for a given template. Methods __construct(ContainerInterface $container, array $engineIds) Constructor. string render(string|TemplateReferenceInterface $name, array $parameters = array()) Renders a template. from DelegatingEngine stream(string|TemplateReferenceInterface $name, array $parameters = array()) Streams a template. from DelegatingEngine bool exists(string|T

DefinitionDecorator::setLazy()

Definition setLazy($boolean) Sets the lazy flag of this service. Parameters $boolean Return Value Definition The current instance

DefinitionDecorator::setPublic()

Definition setPublic(bool $boolean) Sets the visibility of this service. Parameters bool $boolean Return Value Definition The current instance

DefinitionDecorator::setFile()

Definition setFile(string $file) Sets a file to require before creating the service. Parameters string $file A full pathname to include Return Value Definition The current instance

DefinitionDecorator::setDecoratedService()

Definition setDecoratedService(null|string $id, null|string $renamedId = null, int $priority) Sets the service that this service is decorating. Parameters null|string $id The decorated service id, use null to remove decoration null|string $renamedId The new decorated service id int $priority The priority of decoration Return Value Definition The current instance Exceptions InvalidArgumentException In case the decorated service id and the new decorated service id are equals.

DefinitionDecorator::setConfigurator()

Definition setConfigurator(callable $callable) Sets a configurator to call after the service is fully initialized. Parameters callable $callable A PHP callable Return Value Definition The current instance

DefinitionDecorator::setFactory()

Definition setFactory($callable) Sets a factory. Parameters $callable Return Value Definition The current instance

DefinitionDecorator::setDeprecated()

Definition setDeprecated($boolean = true, string $template = null) Whether this definition is deprecated, that means it should not be called anymore. Parameters $boolean string $template Template message to use if the definition is deprecated Return Value Definition the current instance Exceptions InvalidArgumentException When the message template is invalid.

DefinitionDecorator::getParent()

string getParent() Returns the Definition being decorated. Return Value string