Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ($info['method'] === 'direct') {
- // this is the direct rendering approach.
- $this->renderedBlocks[$name] = $instance->render();
- }
- elseif ($info['method'] === 'subrequest') {
- // this routes rendering through a subrequest.
- $response = $this->container->get('http_kernel')->forward(array($instance, 'render'), $attributes, $request->query->all());
- $this->renderedBlocks[$name] = $response->getContent();
- }
Add Comment
Please, Sign In to add comment