Unverified Commit 8f0f57f3 authored by Alex Pott's avatar Alex Pott
Browse files

Issue #3162016 by longwave, andypost, Hardik_Patel_12, catch, alexpott,...

Issue #3162016 by longwave, andypost, Hardik_Patel_12, catch, alexpott, daffie, Kristen Pol: [Symfony 6] Retrieving a non-string value from "Symfony\Component\HttpFoundation\InputBag::get()" is deprecated

(cherry picked from commit 8b8fc1ef)
parent fbcaae76
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -128,7 +128,7 @@ public function processAttachments(AttachmentsInterface $response) {
   *   An array of commands ready to be returned as JSON.
   */
  protected function buildAttachmentsCommands(AjaxResponse $response, Request $request) {
    $ajax_page_state = $request->request->get('ajax_page_state');
    $ajax_page_state = $request->request->all('ajax_page_state');

    // Aggregate CSS/JS if necessary, but only during normal site operation.
    $optimize_css = !defined('MAINTENANCE_MODE') && $this->config->get('css.preprocess');
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ public function getContext($query_arg = NULL) {
      return ($value !== NULL) ? $value : '';
    }
    elseif ($this->requestStack->getCurrentRequest()->query->has($query_arg)) {
      $value = $this->requestStack->getCurrentRequest()->query->get($query_arg);
      $value = $this->requestStack->getCurrentRequest()->query->all()[$query_arg];
      if (is_array($value)) {
        return http_build_query($value);
      }
+1 −1
Original line number Diff line number Diff line
@@ -61,7 +61,7 @@ public function renderResponse(array $main_content, Request $request, RouteMatch
    $title = isset($main_content['#title']) ? $main_content['#title'] : $this->titleResolver->getTitle($request, $route_match->getRouteObject());

    // Determine the dialog options and the target for the OpenDialogCommand.
    $options = $request->request->get('dialogOptions', []);
    $options = $request->request->all('dialogOptions');
    $target = $this->determineTargetSelector($options, $route_match);

    $response->addCommand(new OpenDialogCommand($target, $title, $content, $options));
+1 −1
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ public function renderResponse(array $main_content, Request $request, RouteMatch

    // Determine the title: use the title provided by the main content if any,
    // otherwise get it from the routing information.
    $options = $request->request->get('dialogOptions', []);
    $options = $request->request->all('dialogOptions');

    $response->addCommand(new OpenModalDialogCommand($title, $content, $options));
    return $response;
+1 −1
Original line number Diff line number Diff line
@@ -64,7 +64,7 @@ public function renderResponse(array $main_content, Request $request, RouteMatch

    // Determine the title: use the title provided by the main content if any,
    // otherwise get it from the routing information.
    $options = $request->request->get('dialogOptions', []);
    $options = $request->request->all('dialogOptions');
    $response->addCommand(new OpenOffCanvasDialogCommand($title, $content, $options, NULL, $this->position));
    return $response;
  }
Loading