mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-09 18:04:33 +02:00
Refactored TwigExtensions Part 2
This commit is contained in:
parent
b078389381
commit
a9e527ce2a
22 changed files with 168 additions and 124 deletions
|
@ -97,7 +97,7 @@ class FAIconGenerator
|
|||
*
|
||||
* @return string The final html
|
||||
*/
|
||||
public function generateIconHTML(string $icon_class, string $style = 'fas', string $options = ''): string
|
||||
public function generateIconHTML(string $icon_class, string $style = 'fa-solid', string $options = ''): string
|
||||
{
|
||||
//XSS protection
|
||||
$icon_class = htmlspecialchars($icon_class);
|
||||
|
|
|
@ -41,7 +41,7 @@ use App\Entity\PriceInformations\Currency;
|
|||
use App\Entity\PriceInformations\Orderdetail;
|
||||
use App\Entity\PriceInformations\Pricedetail;
|
||||
use App\Entity\UserSystem\User;
|
||||
use App\Twig\AppExtension;
|
||||
use App\Twig\FormatExtension;
|
||||
use App\Twig\Sandbox\InheritanceSecurityPolicy;
|
||||
use InvalidArgumentException;
|
||||
use Twig\Environment;
|
||||
|
@ -98,7 +98,7 @@ final class SandboxedTwigProvider
|
|||
|
||||
private $appExtension;
|
||||
|
||||
public function __construct(AppExtension $appExtension)
|
||||
public function __construct(FormatExtension $appExtension)
|
||||
{
|
||||
$this->appExtension = $appExtension;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue