| 1 | <?php |
||
| 11 | class BlogExtension implements ExtensionInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var Cache |
||
| 15 | */ |
||
| 16 | private $cache; |
||
| 17 | /** |
||
| 18 | * @var BlogOptions |
||
| 19 | */ |
||
| 20 | private $blogOptions; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * BlogExtension constructor. |
||
| 24 | * @param Cache $cache |
||
| 25 | * @param BlogOptions $blogOptions |
||
| 26 | */ |
||
| 27 | public function __construct(Cache $cache, BlogOptions $blogOptions) |
||
| 32 | |||
| 33 | public function register(Engine $engine) |
||
| 37 | |||
| 38 | public function renderLatestBlogPosts() |
||
| 50 | } |
||
| 51 |