Skip to content

Commit

Permalink
Merge c625b2c into ee4b0eb
Browse files Browse the repository at this point in the history
  • Loading branch information
zilti committed Feb 25, 2022
2 parents ee4b0eb + c625b2c commit 95fcf0e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions sources/lib/Twig/Extension/ProfilerExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@
*/
namespace PommProject\PommBundle\Twig\Extension;

use Twig\Extension\AbstractExtension;
use Twig\Loader\FilesystemLoader;
use Twig\TwigFilter;

/**
* ProfilerExtension
*
Expand All @@ -20,7 +24,7 @@
* @license X11 {@link http://opensource.org/licenses/mit-license.php}
* @see \Twig_Extension
*/
class ProfilerExtension extends \Twig_Extension
class ProfilerExtension extends AbstractExtension
{
/**
* __construct
Expand All @@ -30,7 +34,7 @@ class ProfilerExtension extends \Twig_Extension
* @access public
* @param \Twig_Loader_Filesystem $loader
*/
public function __construct(\Twig_Loader_Filesystem $loader)
public function __construct(FilesystemLoader $loader)
{
$loader->addPath($this->getTemplateDirectory(), 'Pomm');
}
Expand Down Expand Up @@ -58,7 +62,7 @@ private function getTemplateDirectory()
public function getFilters()
{
return [
new \Twig_SimpleFilter('sql_format', function ($sql) {
new TwigFilter('sql_format', function ($sql) {
return \SqlFormatter::format($sql);
}),
];
Expand Down

0 comments on commit 95fcf0e

Please sign in to comment.