Skip to content

o2ps/MorozkoLatteBridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Oops/MorozkoLatteBridge

⚠️ THIS PACKAGE IS NO LONGER MAINTAINED. You can use the AdvancedCache module from contributte/console-extra instead.

Build Status Downloads this Month Latest stable

This package provides a Latte templates cache warmer for Morozko.

Installation and requirements

$ composer require oops/morozko-latte-bridge

Oops/MorozkoLatteBridge requires PHP >= 7.1.

This bridge requires that Morozko is set up correctly; please refer to its README for instructions.

Usage

Register the extension in your config file, along with Morozko and a Symfony/Console integration:

extensions:
    morozko: Oops\Morozko\DI\MorozkoExtension
    morozko.latte: Oops\MorozkoLatteBridge\DI\MorozkoLatteBridgeExtension
    console: Kdyby\Console\DI\ConsoleExtension

morozko.latte:
    directory: %appDir% # <- this is the default

When you run the oops:morozko:warmup command, Latte cache warmer will search for any *.latte files within the configured directory, and pre-compile them.