| 1 | <?php |
||
| 8 | class RenderBlock |
||
| 9 | { |
||
| 10 | /** @var BlockRepository */ |
||
| 11 | private $blockRepository; |
||
| 12 | |||
| 13 | public function __construct(BlockRepository $blockRepository) |
||
| 17 | |||
| 18 | public function handle($request, \Closure $next) |
||
| 37 | |||
| 38 | /** |
||
| 39 | * replaces all block shortcodes from the response HTML with the actual block body |
||
| 40 | * @param string $html |
||
| 41 | * @return string |
||
| 42 | */ |
||
| 43 | private function replaceShortcodes($html) |
||
| 59 | } |
||
| 60 |