Skip to content

Commit

Permalink
Composer: upgrade to Latte v3
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Nov 17, 2023
1 parent 713019a commit 5f75af7
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -34,8 +34,8 @@ For details on how to use this package, check out our [documentation](.docs).

| State | Version | Branch | Latte | PHP |
|-------------|---------|----------|--------|---------|
| dev | `^0.5` | `master` | `2.5+` | `>=8.1` |
| stable | `^0.4` | `master` | `2.5+` | `>=8.1` |
| dev | `^0.5` | `master` | `3.0+` | `>=8.1` |
| stable | `^0.4` | `master` | `3.0+` | `>=8.1` |

## Development

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Expand Up @@ -16,7 +16,7 @@
],
"require": {
"php": ">=8.1",
"latte/latte": "^2.5.1"
"latte/latte": "^3.0.12"
},
"require-dev": {
"nette/utils": "^3.0",
Expand Down
3 changes: 2 additions & 1 deletion src/Replacer/Latte/LatteReplacerBuilder.php
Expand Up @@ -4,6 +4,7 @@

use Contributte\Replacus\Replacer\IReplacer;
use Contributte\Replacus\Replacer\IReplacerBuilder;
use Latte\ContentType;
use Latte\Engine;
use Latte\Loaders\StringLoader;

Expand Down Expand Up @@ -33,7 +34,7 @@ protected function getLatte(): Engine
$this->latte = new Engine();
$this->latte->setLoader(new StringLoader());
$this->latte->setAutoRefresh(false);
$this->latte->setContentType(Engine::CONTENT_HTML);
$this->latte->setContentType(ContentType::Html);
}

return $this->latte;
Expand Down

0 comments on commit 5f75af7

Please sign in to comment.