vendor/symfony/routing/Router.php line 257

Open in your IDE?
  1. <?php
  2. /*
  3.  * This file is part of the Symfony package.
  4.  *
  5.  * (c) Fabien Potencier <fabien@symfony.com>
  6.  *
  7.  * For the full copyright and license information, please view the LICENSE
  8.  * file that was distributed with this source code.
  9.  */
  10. namespace Symfony\Component\Routing;
  11. use Psr\Log\LoggerInterface;
  12. use Symfony\Component\Config\ConfigCacheFactory;
  13. use Symfony\Component\Config\ConfigCacheFactoryInterface;
  14. use Symfony\Component\Config\ConfigCacheInterface;
  15. use Symfony\Component\Config\Loader\LoaderInterface;
  16. use Symfony\Component\ExpressionLanguage\ExpressionFunctionProviderInterface;
  17. use Symfony\Component\HttpFoundation\Request;
  18. use Symfony\Component\Routing\Generator\CompiledUrlGenerator;
  19. use Symfony\Component\Routing\Generator\ConfigurableRequirementsInterface;
  20. use Symfony\Component\Routing\Generator\Dumper\CompiledUrlGeneratorDumper;
  21. use Symfony\Component\Routing\Generator\Dumper\GeneratorDumperInterface;
  22. use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
  23. use Symfony\Component\Routing\Matcher\CompiledUrlMatcher;
  24. use Symfony\Component\Routing\Matcher\Dumper\CompiledUrlMatcherDumper;
  25. use Symfony\Component\Routing\Matcher\Dumper\MatcherDumperInterface;
  26. use Symfony\Component\Routing\Matcher\RequestMatcherInterface;
  27. use Symfony\Component\Routing\Matcher\UrlMatcherInterface;
  28. /**
  29.  * The Router class is an example of the integration of all pieces of the
  30.  * routing system for easier use.
  31.  *
  32.  * @author Fabien Potencier <fabien@symfony.com>
  33.  */
  34. class Router implements RouterInterfaceRequestMatcherInterface
  35. {
  36.     /**
  37.      * @var UrlMatcherInterface|null
  38.      */
  39.     protected $matcher;
  40.     /**
  41.      * @var UrlGeneratorInterface|null
  42.      */
  43.     protected $generator;
  44.     /**
  45.      * @var RequestContext
  46.      */
  47.     protected $context;
  48.     /**
  49.      * @var LoaderInterface
  50.      */
  51.     protected $loader;
  52.     /**
  53.      * @var RouteCollection|null
  54.      */
  55.     protected $collection;
  56.     /**
  57.      * @var mixed
  58.      */
  59.     protected $resource;
  60.     /**
  61.      * @var array
  62.      */
  63.     protected $options = [];
  64.     /**
  65.      * @var LoggerInterface|null
  66.      */
  67.     protected $logger;
  68.     /**
  69.      * @var string|null
  70.      */
  71.     protected $defaultLocale;
  72.     /**
  73.      * @var ConfigCacheFactoryInterface|null
  74.      */
  75.     private $configCacheFactory;
  76.     /**
  77.      * @var ExpressionFunctionProviderInterface[]
  78.      */
  79.     private $expressionLanguageProviders = [];
  80.     private static $cache = [];
  81.     /**
  82.      * @param mixed $resource The main resource to load
  83.      */
  84.     public function __construct(LoaderInterface $loader$resource, array $options = [], RequestContext $context nullLoggerInterface $logger nullstring $defaultLocale null)
  85.     {
  86.         $this->loader $loader;
  87.         $this->resource $resource;
  88.         $this->logger $logger;
  89.         $this->context $context ?? new RequestContext();
  90.         $this->setOptions($options);
  91.         $this->defaultLocale $defaultLocale;
  92.     }
  93.     /**
  94.      * Sets options.
  95.      *
  96.      * Available options:
  97.      *
  98.      *   * cache_dir:              The cache directory (or null to disable caching)
  99.      *   * debug:                  Whether to enable debugging or not (false by default)
  100.      *   * generator_class:        The name of a UrlGeneratorInterface implementation
  101.      *   * generator_dumper_class: The name of a GeneratorDumperInterface implementation
  102.      *   * matcher_class:          The name of a UrlMatcherInterface implementation
  103.      *   * matcher_dumper_class:   The name of a MatcherDumperInterface implementation
  104.      *   * resource_type:          Type hint for the main resource (optional)
  105.      *   * strict_requirements:    Configure strict requirement checking for generators
  106.      *                             implementing ConfigurableRequirementsInterface (default is true)
  107.      *
  108.      * @throws \InvalidArgumentException When unsupported option is provided
  109.      */
  110.     public function setOptions(array $options)
  111.     {
  112.         $this->options = [
  113.             'cache_dir' => null,
  114.             'debug' => false,
  115.             'generator_class' => CompiledUrlGenerator::class,
  116.             'generator_dumper_class' => CompiledUrlGeneratorDumper::class,
  117.             'matcher_class' => CompiledUrlMatcher::class,
  118.             'matcher_dumper_class' => CompiledUrlMatcherDumper::class,
  119.             'resource_type' => null,
  120.             'strict_requirements' => true,
  121.         ];
  122.         // check option names and live merge, if errors are encountered Exception will be thrown
  123.         $invalid = [];
  124.         foreach ($options as $key => $value) {
  125.             if (\array_key_exists($key$this->options)) {
  126.                 $this->options[$key] = $value;
  127.             } else {
  128.                 $invalid[] = $key;
  129.             }
  130.         }
  131.         if ($invalid) {
  132.             throw new \InvalidArgumentException(sprintf('The Router does not support the following options: "%s".'implode('", "'$invalid)));
  133.         }
  134.     }
  135.     /**
  136.      * Sets an option.
  137.      *
  138.      * @param mixed $value The value
  139.      *
  140.      * @throws \InvalidArgumentException
  141.      */
  142.     public function setOption(string $key$value)
  143.     {
  144.         if (!\array_key_exists($key$this->options)) {
  145.             throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.'$key));
  146.         }
  147.         $this->options[$key] = $value;
  148.     }
  149.     /**
  150.      * Gets an option value.
  151.      *
  152.      * @return mixed
  153.      *
  154.      * @throws \InvalidArgumentException
  155.      */
  156.     public function getOption(string $key)
  157.     {
  158.         if (!\array_key_exists($key$this->options)) {
  159.             throw new \InvalidArgumentException(sprintf('The Router does not support the "%s" option.'$key));
  160.         }
  161.         return $this->options[$key];
  162.     }
  163.     /**
  164.      * {@inheritdoc}
  165.      */
  166.     public function getRouteCollection()
  167.     {
  168.         if (null === $this->collection) {
  169.             $this->collection $this->loader->load($this->resource$this->options['resource_type']);
  170.         }
  171.         return $this->collection;
  172.     }
  173.     /**
  174.      * {@inheritdoc}
  175.      */
  176.     public function setContext(RequestContext $context)
  177.     {
  178.         $this->context $context;
  179.         if (null !== $this->matcher) {
  180.             $this->getMatcher()->setContext($context);
  181.         }
  182.         if (null !== $this->generator) {
  183.             $this->getGenerator()->setContext($context);
  184.         }
  185.     }
  186.     /**
  187.      * {@inheritdoc}
  188.      */
  189.     public function getContext()
  190.     {
  191.         return $this->context;
  192.     }
  193.     /**
  194.      * Sets the ConfigCache factory to use.
  195.      */
  196.     public function setConfigCacheFactory(ConfigCacheFactoryInterface $configCacheFactory)
  197.     {
  198.         $this->configCacheFactory $configCacheFactory;
  199.     }
  200.     /**
  201.      * {@inheritdoc}
  202.      */
  203.     public function generate(string $name, array $parameters = [], int $referenceType self::ABSOLUTE_PATH)
  204.     {
  205.         return $this->getGenerator()->generate($name$parameters$referenceType);
  206.     }
  207.     /**
  208.      * {@inheritdoc}
  209.      */
  210.     public function match(string $pathinfo)
  211.     {
  212.         return $this->getMatcher()->match($pathinfo);
  213.     }
  214.     /**
  215.      * {@inheritdoc}
  216.      */
  217.     public function matchRequest(Request $request)
  218.     {
  219.         $matcher $this->getMatcher();
  220.         if (!$matcher instanceof RequestMatcherInterface) {
  221.             // fallback to the default UrlMatcherInterface
  222.             return $matcher->match($request->getPathInfo());
  223.         }
  224.         return $matcher->matchRequest($request);
  225.     }
  226.     /**
  227.      * Gets the UrlMatcher or RequestMatcher instance associated with this Router.
  228.      *
  229.      * @return UrlMatcherInterface|RequestMatcherInterface
  230.      */
  231.     public function getMatcher()
  232.     {
  233.         if (null !== $this->matcher) {
  234.             return $this->matcher;
  235.         }
  236.         if (null === $this->options['cache_dir']) {
  237.             $routes $this->getRouteCollection();
  238.             $compiled is_a($this->options['matcher_class'], CompiledUrlMatcher::class, true);
  239.             if ($compiled) {
  240.                 $routes = (new CompiledUrlMatcherDumper($routes))->getCompiledRoutes();
  241.             }
  242.             $this->matcher = new $this->options['matcher_class']($routes$this->context);
  243.             if (method_exists($this->matcher'addExpressionLanguageProvider')) {
  244.                 foreach ($this->expressionLanguageProviders as $provider) {
  245.                     $this->matcher->addExpressionLanguageProvider($provider);
  246.                 }
  247.             }
  248.             return $this->matcher;
  249.         }
  250.         $cache $this->getConfigCacheFactory()->cache($this->options['cache_dir'].'/url_matching_routes.php',
  251.             function (ConfigCacheInterface $cache) {
  252.                 $dumper $this->getMatcherDumperInstance();
  253.                 if (method_exists($dumper'addExpressionLanguageProvider')) {
  254.                     foreach ($this->expressionLanguageProviders as $provider) {
  255.                         $dumper->addExpressionLanguageProvider($provider);
  256.                     }
  257.                 }
  258.                 $cache->write($dumper->dump(), $this->getRouteCollection()->getResources());
  259.             }
  260.         );
  261.         return $this->matcher = new $this->options['matcher_class'](self::getCompiledRoutes($cache->getPath()), $this->context);
  262.     }
  263.     /**
  264.      * Gets the UrlGenerator instance associated with this Router.
  265.      *
  266.      * @return UrlGeneratorInterface
  267.      */
  268.     public function getGenerator()
  269.     {
  270.         if (null !== $this->generator) {
  271.             return $this->generator;
  272.         }
  273.         if (null === $this->options['cache_dir']) {
  274.             $routes $this->getRouteCollection();
  275.             $aliases = [];
  276.             $compiled is_a($this->options['generator_class'], CompiledUrlGenerator::class, true);
  277.             if ($compiled) {
  278.                 $generatorDumper = new CompiledUrlGeneratorDumper($routes);
  279.                 $routes $generatorDumper->getCompiledRoutes();
  280.                 $aliases $generatorDumper->getCompiledAliases();
  281.             }
  282.             $this->generator = new $this->options['generator_class'](array_merge($routes$aliases), $this->context$this->logger$this->defaultLocale);
  283.         } else {
  284.             $cache $this->getConfigCacheFactory()->cache($this->options['cache_dir'].'/url_generating_routes.php',
  285.                 function (ConfigCacheInterface $cache) {
  286.                     $dumper $this->getGeneratorDumperInstance();
  287.                     $cache->write($dumper->dump(), $this->getRouteCollection()->getResources());
  288.                 }
  289.             );
  290.             $this->generator = new $this->options['generator_class'](self::getCompiledRoutes($cache->getPath()), $this->context$this->logger$this->defaultLocale);
  291.         }
  292.         if ($this->generator instanceof ConfigurableRequirementsInterface) {
  293.             $this->generator->setStrictRequirements($this->options['strict_requirements']);
  294.         }
  295.         return $this->generator;
  296.     }
  297.     public function addExpressionLanguageProvider(ExpressionFunctionProviderInterface $provider)
  298.     {
  299.         $this->expressionLanguageProviders[] = $provider;
  300.     }
  301.     /**
  302.      * @return GeneratorDumperInterface
  303.      */
  304.     protected function getGeneratorDumperInstance()
  305.     {
  306.         return new $this->options['generator_dumper_class']($this->getRouteCollection());
  307.     }
  308.     /**
  309.      * @return MatcherDumperInterface
  310.      */
  311.     protected function getMatcherDumperInstance()
  312.     {
  313.         return new $this->options['matcher_dumper_class']($this->getRouteCollection());
  314.     }
  315.     /**
  316.      * Provides the ConfigCache factory implementation, falling back to a
  317.      * default implementation if necessary.
  318.      */
  319.     private function getConfigCacheFactory(): ConfigCacheFactoryInterface
  320.     {
  321.         if (null === $this->configCacheFactory) {
  322.             $this->configCacheFactory = new ConfigCacheFactory($this->options['debug']);
  323.         }
  324.         return $this->configCacheFactory;
  325.     }
  326.     private static function getCompiledRoutes(string $path): array
  327.     {
  328.         if ([] === self::$cache && \function_exists('opcache_invalidate') && filter_var(ini_get('opcache.enable'), \FILTER_VALIDATE_BOOLEAN) && (!\in_array(\PHP_SAPI, ['cli''phpdbg'], true) || filter_var(ini_get('opcache.enable_cli'), \FILTER_VALIDATE_BOOLEAN))) {
  329.             self::$cache null;
  330.         }
  331.         if (null === self::$cache) {
  332.             return require $path;
  333.         }
  334.         if (isset(self::$cache[$path])) {
  335.             return self::$cache[$path];
  336.         }
  337.         return self::$cache[$path] = require $path;
  338.     }
  339. }
HTTP/2 401 returned for "https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240". (500 Internal Server Error)

Symfony Exception

ClientException

HTTP 500 Internal Server Error

HTTP/2 401 returned for "https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240".

Exception

Symfony\Component\HttpClient\Exception\ ClientException

  1.         if (500 <= $code) {
  2.             throw new ServerException($this);
  3.         }
  4.         if (400 <= $code) {
  5.             throw new ClientException($this);
  6.         }
  7.         if (300 <= $code) {
  8.             throw new RedirectionException($this);
  9.         }
  1.         } finally {
  2.             if ($this->event && $this->event->isStarted()) {
  3.                 $this->event->stop();
  4.             }
  5.             if ($throw) {
  6.                 $this->checkStatusCode($this->response->getStatusCode());
  7.             }
  8.         }
  9.     }
  10.     public function toArray(bool $throw true): array
TraceableResponse->getContent() in src/Blog.php (line 181)
  1.                     'hapikey' => $this->hubSpotKey,
  2.                     'after' => $after,
  3.                 ],
  4.             ]);
  5.             $result json_decode($response->getContent(), true);
  6.         } catch (HttpExceptionInterface $e) {
  7.             $this->logger->error('Could not load blog posts from HubSpot', ['exception' => $e]);
  8.             throw $e;
  9.         }
Blog->loadBlogAuthors() in src/Blog.php (line 152)
  1.         if (!isset($this->authors)) {
  2.             $beta $bustCache INF null;
  3.             $this->authors $this->cache->get('blog_authors', function (ItemInterface $item) {
  4.                 $item->expiresAfter(86400); // cache for 1 day
  5.                 return $this->loadBlogAuthors();
  6.             }, $beta);
  7.         }
  8.         return $this->authors;
  9.     }
  1.         $isHit true;
  2.         $callback = function (CacheItem $itembool &$save) use ($callback, &$isHit) {
  3.             $isHit $item->isHit();
  4.             return $callback($item$save);
  5.         };
  6.         $event $this->start(__FUNCTION__);
  7.         try {
  8.             $value $this->pool->get($key$callback$beta$metadata);
in vendor/symfony/cache/LockRegistry.php -> Symfony\Component\Cache\Adapter\{closure} (line 108)
  1.                 if ($locked || !$wouldBlock) {
  2.                     $logger && $logger->info(sprintf('Lock %s, now computing item "{key}"'$locked 'acquired' 'not supported'), ['key' => $item->getKey()]);
  3.                     self::$lockedFiles[$key] = true;
  4.                     $value $callback($item$save);
  5.                     if ($save) {
  6.                         if ($setMetadata) {
  7.                             $setMetadata($item);
  8.                         }
  1.             }
  2.             try {
  3.                 $value = ($this->callbackWrapper)($callback$item$save$pool, function (CacheItem $item) use ($setMetadata$startTime, &$metadata) {
  4.                     $setMetadata($item$startTime$metadata);
  5.                 }, $this->logger ?? null);
  6.                 $setMetadata($item$startTime$metadata);
  7.                 return $value;
  8.             } finally {
  9.                 unset($this->computing[$key]);
in vendor/symfony/cache-contracts/CacheTrait.php -> Symfony\Component\Cache\Traits\{closure} (line 72)
  1.             }
  2.         }
  3.         if ($recompute) {
  4.             $save true;
  5.             $item->set($callback($item$save));
  6.             if ($save) {
  7.                 $pool->save($item);
  8.             }
  9.         }
  1.                 return $value;
  2.             } finally {
  3.                 unset($this->computing[$key]);
  4.             }
  5.         }, $beta$metadata$this->logger ?? null);
  6.     }
  7. }
  1.      *
  2.      * @return mixed
  3.      */
  4.     public function get(string $key, callable $callbackfloat $beta null, array &$metadata null)
  5.     {
  6.         return $this->doGet($this$key$callback$beta$metadata);
  7.     }
  8.     /**
  9.      * {@inheritdoc}
  10.      */
  1.             return $callback($item$save);
  2.         };
  3.         $event $this->start(__FUNCTION__);
  4.         try {
  5.             $value $this->pool->get($key$callback$beta$metadata);
  6.             $event->result[$key] = get_debug_type($value);
  7.         } finally {
  8.             $event->end microtime(true);
  9.         }
  10.         if ($isHit) {
TraceableAdapter->get('blog_authors', object(Closure), INF) in src/Blog.php (line 149)
  1.     public function getAuthors(bool $bustCache false): array
  2.     {
  3.         if (!isset($this->authors)) {
  4.             $beta $bustCache INF null;
  5.             $this->authors $this->cache->get('blog_authors', function (ItemInterface $item) {
  6.                 $item->expiresAfter(86400); // cache for 1 day
  7.                 return $this->loadBlogAuthors();
  8.             }, $beta);
  9.         }
Blog->getAuthors(true) in src/Blog.php (line 37)
  1.      * WARNING: This will be slow and should not be called
  2.      * unless intentional.
  3.      */
  4.     public function bustCache(): void
  5.     {
  6.         $this->getAuthors(true);
  7.         $this->getTags(true);
  8.         $this->getAllPosts(true);
  9.     }
  10.     public function getAuthor(string $slug): ?array
  1.         // Update the last refresh time now to minimize cache stampede
  2.         $this->cache->get('lastContentRefresh', function () {
  3.             return time();
  4.         }, INF);
  5.         $this->blog->bustCache();
  6.     }
  7.     public static function getSubscribedEvents(): array
  8.     {
  9.         return [
ContentRefreshSubscriber->refresh() in src/EventSubscriber/ContentRefreshSubscriber.php (line 34)
  1.         $lastRefresh $this->cache->get('lastContentRefresh', function () {
  2.             return 0;
  3.         });
  4.         if ($lastRefresh strtotime('-5 minutes')) {
  5.             $this->refresh();
  6.         }
  7.     }
  8.     private function refresh(): void
  9.     {
  1.                     $closure = static function (...$args) use (&$listener, &$closure) {
  2.                         if ($listener[0] instanceof \Closure) {
  3.                             $listener[0] = $listener[0]();
  4.                             $listener[1] = $listener[1] ?? '__invoke';
  5.                         }
  6.                         ($closure \Closure::fromCallable($listener))(...$args);
  7.                     };
  8.                 } else {
  9.                     $closure $listener instanceof \Closure || $listener instanceof WrappedListener $listener \Closure::fromCallable($listener);
  10.                 }
  11.             }
in vendor/symfony/event-dispatcher/EventDispatcher.php :: Symfony\Component\EventDispatcher\{closure} (line 230)
  1.         foreach ($listeners as $listener) {
  2.             if ($stoppable && $event->isPropagationStopped()) {
  3.                 break;
  4.             }
  5.             $listener($event$eventName$this);
  6.         }
  7.     }
  8.     /**
  9.      * Sorts the internal list of listeners for the given event by priority.
  1.         } else {
  2.             $listeners $this->getListeners($eventName);
  3.         }
  4.         if ($listeners) {
  5.             $this->callListeners($listeners$eventName$event);
  6.         }
  7.         return $event;
  8.     }
  1.     /**
  2.      * {@inheritdoc}
  3.      */
  4.     public function terminate(Request $requestResponse $response)
  5.     {
  6.         $this->dispatcher->dispatch(new TerminateEvent($this$request$response), KernelEvents::TERMINATE);
  7.     }
  8.     /**
  9.      * @internal
  10.      */
in vendor/symfony/http-kernel/Kernel.php -> terminate (line 159)
  1.         if (false === $this->booted) {
  2.             return;
  3.         }
  4.         if ($this->getHttpKernel() instanceof TerminableInterface) {
  5.             $this->getHttpKernel()->terminate($request$response);
  6.         }
  7.     }
  8.     /**
  9.      * {@inheritdoc}
Kernel->terminate(object(Request), object(Response)) in public/index.php (line 36)
  1. $kernel = new Kernel($_SERVER['APP_ENV'], (bool) $_SERVER['APP_DEBUG']);
  2. $request Request::createFromGlobals();
  3. $response $kernel->handle($request);
  4. $response->send();
  5. $kernel->terminate($request$response);

Logs 3

Level Channel Message
INFO 01:19:18 php User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.native" service is deprecated, use "session.storage.factory.native" instead.
{
    "exception": {}
}
INFO 01:19:18 php User Deprecated: Since symfony/framework-bundle 5.3: The "session.storage.metadata_bag" service is deprecated, create your own "session.storage.factory" instead.
{
    "exception": {}
}
INFO 01:19:18 request Matched route "_profiler_open_file".
{
    "route": "_profiler_open_file",
    "route_parameters": {
        "_route": "_profiler_open_file",
        "_controller": "web_profiler.controller.profiler::openAction"
    },
    "request_uri": "http://invoiced.project-release.info/_profiler/open?file=vendor%2Fsymfony%2Frouting%2FRouter.php&line=257",
    "method": "GET"
}
INFO 01:19:18 cache Lock acquired, now computing item "lastContentRefresh"
{
    "key": "lastContentRefresh"
}
INFO 01:19:18 cache Lock acquired, now computing item "blog_authors"
{
    "key": "blog_authors"
}
INFO 01:19:18 http_client Request: "GET https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240"
INFO 01:19:18 http_client Response: "401 https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240"
ERROR 01:19:18 app Could not load blog posts from HubSpot
{
    "exception": {}
}
CRITICAL 01:19:18 php Uncaught Exception: HTTP/2 401 returned for "https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240".
{
    "exception": {}
}
CRITICAL 01:19:18 request Uncaught PHP Exception Symfony\Component\HttpClient\Exception\ClientException: "HTTP/2 401 returned for "https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240"." at /var/www/invoiced/data/www/invoiced.project-release.info/vendor/symfony/http-client/Response/TraceableResponse.php line 212
{
    "exception": {}
}

Stack Trace

ClientException
Symfony\Component\HttpClient\Exception\ClientException:
HTTP/2 401  returned for "https://api.hubapi.com/cms/v3/blogs/authors?hapikey=41d1972b-a2ce-454d-9e57-cd6355e00240".

  at vendor/symfony/http-client/Response/TraceableResponse.php:212
  at Symfony\Component\HttpClient\Response\TraceableResponse->checkStatusCode(401)
     (vendor/symfony/http-client/Response/TraceableResponse.php:103)
  at Symfony\Component\HttpClient\Response\TraceableResponse->getContent()
     (src/Blog.php:181)
  at App\Blog->loadBlogAuthors()
     (src/Blog.php:152)
  at App\Blog->App\{closure}(object(CacheItem), true)
     (vendor/symfony/cache/Adapter/TraceableAdapter.php:51)
  at Symfony\Component\Cache\Adapter\TraceableAdapter->Symfony\Component\Cache\Adapter\{closure}(object(CacheItem), true)
     (vendor/symfony/cache/LockRegistry.php:108)
  at Symfony\Component\Cache\LockRegistry::compute(object(Closure), object(CacheItem), true, object(FilesystemAdapter), object(Closure), object(Logger))
     (vendor/symfony/cache/Traits/ContractsTrait.php:100)
  at Symfony\Component\Cache\Adapter\AbstractAdapter->Symfony\Component\Cache\Traits\{closure}(object(CacheItem), true)
     (vendor/symfony/cache-contracts/CacheTrait.php:72)
  at Symfony\Component\Cache\Adapter\AbstractAdapter->contractsGet(object(FilesystemAdapter), 'blog_authors', object(Closure), INF, array(), object(Logger))
     (vendor/symfony/cache/Traits/ContractsTrait.php:107)
  at Symfony\Component\Cache\Adapter\AbstractAdapter->doGet(object(FilesystemAdapter), 'blog_authors', object(Closure), INF, array())
     (vendor/symfony/cache-contracts/CacheTrait.php:35)
  at Symfony\Component\Cache\Adapter\AbstractAdapter->get('blog_authors', object(Closure), INF, array())
     (vendor/symfony/cache/Adapter/TraceableAdapter.php:56)
  at Symfony\Component\Cache\Adapter\TraceableAdapter->get('blog_authors', object(Closure), INF)
     (src/Blog.php:149)
  at App\Blog->getAuthors(true)
     (src/Blog.php:37)
  at App\Blog->bustCache()
     (src/EventSubscriber/ContentRefreshSubscriber.php:45)
  at App\EventSubscriber\ContentRefreshSubscriber->refresh()
     (src/EventSubscriber/ContentRefreshSubscriber.php:34)
  at App\EventSubscriber\ContentRefreshSubscriber->onKernelTerminate(object(TerminateEvent), 'kernel.terminate', object(EventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:270)
  at Symfony\Component\EventDispatcher\EventDispatcher::Symfony\Component\EventDispatcher\{closure}(object(TerminateEvent), 'kernel.terminate', object(EventDispatcher))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:230)
  at Symfony\Component\EventDispatcher\EventDispatcher->callListeners(array(object(Closure), object(Closure)), 'kernel.terminate', object(TerminateEvent))
     (vendor/symfony/event-dispatcher/EventDispatcher.php:59)
  at Symfony\Component\EventDispatcher\EventDispatcher->dispatch(object(TerminateEvent), 'kernel.terminate')
     (vendor/symfony/http-kernel/HttpKernel.php:94)
  at Symfony\Component\HttpKernel\HttpKernel->terminate(object(Request), object(Response))
     (vendor/symfony/http-kernel/Kernel.php:159)
  at Symfony\Component\HttpKernel\Kernel->terminate(object(Request), object(Response))
     (public/index.php:36)