Removed encore added books crud

This commit is contained in:
krzysiej
2022-05-20 14:53:13 +02:00
parent ac3f054dec
commit 210318eca4
31 changed files with 611 additions and 299 deletions

22
src/Twig/AppExtension.php Normal file
View File

@@ -0,0 +1,22 @@
<?php
namespace App\Twig;
use Twig\Extension\AbstractExtension;
use Twig\TwigFunction;
class AppExtension extends AbstractExtension
{
public function getFunctions()
{
return [
new TwigFunction('file_exists', [$this, 'file_exists']),
];
}
public function file_exists(string $file): bool
{
return file_exists(ltrim($file, '/'));
}
}