diff options
Diffstat (limited to 'app.php')
| -rw-r--r-- | app.php | 10 |
1 files changed, 1 insertions, 9 deletions
@@ -1,6 +1,7 @@ <?php require __DIR__ . '/vendor/autoload.php'; +require __DIR__ . '/functions.php'; $loader = new \Twig\Loader\FilesystemLoader(__DIR__ . '/views'); $twig = new \Twig\Environment($loader); # no cache @@ -26,12 +27,3 @@ $function = new \Twig\TwigFunction('dump', function($data) { var_dump($data); }); $twig->addFunction($function); - -function get_faces(){ - return json_decode( file_get_contents( __DIR__ . '/views/tools/faces/faces.json' ), true ); -} - -function str_starts_with( $haystack, $needle ) { - $length = strlen( $needle ); - return substr( $haystack, 0, $length ) === $needle; -} |
