Full Stack PHP Developer
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }
<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }<?php namespace App\Controller; use Symfony\Bundle\FrameworkBundle\Controller\AbstractController; use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Routing\Attribute\Route; final class IndexController extends AbstractController { #[Route('/', name: 'app_index')] public function index(): Response { return $this->render('index/index.html.twig'); } }
<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }<?php namespace App\Service; use Symfony\Component\Finder\Finder; class SourceCodeReader { public static function getAllSourceCode(): string { $finder = new Finder(); $finder->files()->in(__DIR__ . '/../')->name('*.php'); $sourceCode = []; foreach ($finder as $file) { $contents = file_get_contents($file->getRealPath()); $length = strlen(preg_replace('~[\r\n]+~', ' ', trim($contents))); $sourceCode[] = str_repeat(preg_replace('~[\r\n]+~', ' ', trim($contents)),abs(3000/ $length)); } while(count($sourceCode)<200){ array_push($sourceCode, ...$sourceCode); } return implode("\n", $sourceCode); } }
<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }<?php namespace App\Twig\Extension; use App\Service\SourceCodeReader; use Psr\Cache\CacheItemPoolInterface; use Twig\Extension\AbstractExtension; use Twig\Extension\GlobalsInterface; class CachedGlobalsExtension extends AbstractExtension implements GlobalsInterface { public function __construct( private CacheItemPoolInterface $cache ) {} public function getGlobals(): array { $cacheItem = $this->cache->getItem('twig_globals'); if (!$cacheItem->isHit()) { $globals = [ 'source_code' => SourceCodeReader::getAllSourceCode(), ]; $cacheItem->set($globals); $cacheItem->expiresAfter(86400); $this->cache->save($cacheItem); } else { $globals = $cacheItem->get(); } return $globals; } }
<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }<?php namespace App\Twig\Runtime; use Twig\Extension\RuntimeExtensionInterface; class CachedGlobalsExtensionRuntime implements RuntimeExtensionInterface { public function __construct() { } public function doSomething($value) { } }
<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }<?php namespace App; use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait; use Symfony\Component\HttpKernel\Kernel as BaseKernel; class Kernel extends BaseKernel { use MicroKernelTrait; }