ContainerAwareHIncludeFragmentRenderer deprecated
class ContainerAwareHIncludeFragmentRenderer extends HIncludeFragmentRenderer
deprecated
Implements the Hinclude rendering strategy.
Methods
|  setFragmentPath(string $path)  Sets the fragment path that triggers the fragment listener.  |  from RoutableFragmentRenderer | |
|  __construct(ContainerInterface $container, UriSigner $signer = null, string $globalDefaultTemplate = null)  Constructor.  |  ||
|  setTemplating(EngineInterface|Twig_Environment|null $templating)  Sets the templating engine to use to render the default content.  |  from HIncludeFragmentRenderer | |
| bool |  hasTemplating()  Checks if a templating engine has been set.  |  from HIncludeFragmentRenderer | 
| Response |  render(string|ControllerReference $uri, Request $request, array $options = array())  Renders a URI and returns the Response content.  |  |
| string |  getName()  Gets the name of the strategy.  |  from HIncludeFragmentRenderer | 
Details
setFragmentPath(string $path)
Sets the fragment path that triggers the fragment listener.
Parameters
| string | $path | The path | 
See also
| FragmentListener | 
__construct(ContainerInterface $container, UriSigner $signer = null, string $globalDefaultTemplate = null)
Constructor.
Parameters
| ContainerInterface | $container | |
| UriSigner | $signer | A UriSigner instance | 
| string | $globalDefaultTemplate | The global default content (it can be a template name or the content) | 
setTemplating(EngineInterface|Twig_Environment|null $templating)
Sets the templating engine to use to render the default content.
Parameters
| EngineInterface|Twig_Environment|null | $templating | An EngineInterface or a \Twig_Environment instance | 
Exceptions
| InvalidArgumentException | 
bool hasTemplating()
Checks if a templating engine has been set.
Return Value
| bool | true if the templating engine has been set, false otherwise | 
Response render(string|ControllerReference $uri, Request $request, array $options = array())
Renders a URI and returns the Response content.
Parameters
| string|ControllerReference | $uri | A URI as a string or a ControllerReference instance | 
| Request | $request | A Request instance | 
| array | $options | An array of options | 
Return Value
| Response | A Response instance | 
string getName()
Gets the name of the strategy.
Return Value
| string | The strategy name | 
    © 2004–2017 Fabien Potencier
Licensed under the MIT License.
    http://api.symfony.com/2.7/Symfony/Bundle/FrameworkBundle/Fragment/ContainerAwareHIncludeFragmentRenderer.html