$endpoint = $this->endpoint . $path . '?_format=json';
$cacheKey = md5($endpoint . $subrequestsBody . $preview);
if ($forceUpdateCache === false && $this->cache->has($cacheKey)) {
return json_decode($this->cache->get($cacheKey));
} else {
$fetcher = new DrupalDataFetcher($this->defaultLocale);
$resultDecoded = $fetcher->fetch($subrequestsBody, $preview, $locale);
public function wildcardAction(Request $request, $path)
{
$additionalParams = [];
$template = 'DefaultTemplate';
$entry = $this->CMS_CLIENT->getEntryByPath($request, $path, 'page');
return $this->CMS_CLIENT->getPage($request, 'templates/' . $template . '.html.twig', $entry, $additionalParams);
}
public function showException(Request $request, FlattenException $exception, DebugLoggerInterface $logger = null)
{
$this->dispatcher->dispatch($event, KernelEvents::CONTROLLER_ARGUMENTS);
$controller = $event->getController();
$arguments = $event->getArguments();
// call controller
$response = $controller(...$arguments);
// view
if (!$response instanceof Response) {
$event = new ViewEvent($this, $request, $type, $response);
$this->dispatcher->dispatch($event, KernelEvents::VIEW);
public function handle(Request $request, int $type = HttpKernelInterface::MASTER_REQUEST, bool $catch = true)
{
$request->headers->set('X-Php-Ob-Level', (string) ob_get_level());
try {
return $this->handleRaw($request, $type);
} catch (\Exception $e) {
if ($e instanceof RequestExceptionInterface) {
$e = new BadRequestHttpException($e->getMessage(), $e);
}
if (false === $catch) {
No log messages
Error |
---|
Error: Call to a member function has() on null at src/HelloMonday/Static/StaticClient.php:307 at App\HelloMonday\StaticClient\StaticClient->fetch() (src/HelloMonday/Static/StaticClient.php:280) at App\HelloMonday\StaticClient\StaticClient->requestFullDump() (src/HelloMonday/Static/StaticClient.php:127) at App\HelloMonday\StaticClient\StaticClient->getEntryByPath() (src/Controller/DefaultController.php:59) at App\Controller\DefaultController->wildcardAction() (vendor/symfony/http-kernel/HttpKernel.php:157) at Symfony\Component\HttpKernel\HttpKernel->handleRaw() (vendor/symfony/http-kernel/HttpKernel.php:79) at Symfony\Component\HttpKernel\HttpKernel->handle() (vendor/symfony/http-kernel/Kernel.php:196) at Symfony\Component\HttpKernel\Kernel->handle() (public/index.php:28) |