Skip to content

Commit

Permalink
Updates twig class names.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardo-fls committed May 6, 2022
1 parent 5a0102d commit 9ae8c04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
"php": ">=5.3.3"
},
"require-dev": {
"twig/twig": "~1.20|~2.0",
"symfony/translation": "~2.3"
"twig/twig": "~2.0|~3.0",
"symfony/translation": ">4.0"
},
"autoload": {
"psr-4": { "Flagship\\Components\\Twig\\Extensions\\": "src/" }
Expand Down
3 changes: 2 additions & 1 deletion src/Filters/TimeAgoFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
namespace Flagship\Components\Twig\Extensions\Filters;

use Symfony\Component\Translation\TranslatorInterface;
use Twig\Extension\AbstractExtension;

class TimeAgoFilter extends \Twig_Extension
class TimeAgoFilter extends AbstractExtension
{
public static $units = [
31536000 => 'year',
Expand Down

0 comments on commit 9ae8c04

Please sign in to comment.