Skip to content

Commit

Permalink
Use namespaced Twig naming
Browse files Browse the repository at this point in the history
  • Loading branch information
TiGR authored May 24, 2021
1 parent 0c69d7e commit 8251ab6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/Twig_Loader_Preprocessor.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

use Twig\Loader\LoaderInterface;

/**
* Twig Preprocessor loader that allows adding custom text filters for template strings.
*
Expand All @@ -16,7 +18,7 @@
*
* @author Igor Tarasov <[email protected]>
*/
class Twig_Loader_Preprocessor implements Twig_LoaderInterface
class Twig_Loader_Preprocessor implements LoaderInterface
{
private $realLoader;
private $callback;
Expand All @@ -29,7 +31,7 @@ class Twig_Loader_Preprocessor implements Twig_LoaderInterface
* @param Twig_LoaderInterface $loader A loader that does real loading of templates
* @param callable $callback The processing callback
*/
public function __construct(Twig_LoaderInterface $loader, $callback)
public function __construct(LoaderInterface $loader, $callback)
{
$this->realLoader = $loader;
$this->callback = $callback;
Expand Down

0 comments on commit 8251ab6

Please sign in to comment.