-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
4 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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. | ||
* | ||
|
@@ -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; | ||
|
@@ -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; | ||
|