Skip to content
Snippets Groups Projects
Commit e452728d authored by Arthur Lorenz's avatar Arthur Lorenz Committed by Lio Novelli
Browse files

Issue #3318757 by arthur_lorenz, useernamee, erikaagp: D10 Compatability

parent 574e30de
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@ description: 'Provides custom elements API at /ce-api'
type: module
package: Lupus Decoupled Drupal
core_version_requirement: 8.x || ^9
core_version_requirement: ^9 || ^10
dependencies:
- trusted_redirect:trusted_redirect
- lupus_ce_renderer:lupus_ce_renderer
......
......@@ -9,8 +9,6 @@
* Implements hook_trusted_redirect_hosts_alter().
*/
function lupus_decoupled_ce_api_trusted_redirect_hosts_alter(array &$trusted_hosts) {
$a =1;
$frontend_base_url = \Drupal::service('lupus_decoupled_ce_api.base_url_provider')
->getFrontendBaseUrl();
$trusted_hosts[] = parse_url($frontend_base_url, PHP_URL_HOST);
......
......@@ -2,6 +2,7 @@
namespace Drupal\lupus_decoupled_ce_api;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpFoundation\Request;
......@@ -43,7 +44,7 @@ class BackendApiRequest implements HttpKernelInterface {
/**
* {@inheritdoc}
*/
public function handle(Request $request, $type = self::MASTER_REQUEST, $catch = TRUE) {
public function handle(Request $request, $type = self::MAIN_REQUEST, $catch = TRUE): Response {
$uri = $request->server->get('REQUEST_URI');
// If this request is against /ce-api then internally rewrite is as a request
......
......@@ -3,6 +3,6 @@ description: 'Provides the layout builder base setup.'
type: module
package: Lupus Decoupled Drupal
core_version_requirement: 8.x || ^9
core_version_requirement: ^9 || ^10
dependencies:
- drupal:layout_builder
......@@ -3,7 +3,7 @@ description: 'Provides menu API endpoints for Drupal menus'
type: module
package: Lupus Decoupled Drupal
core_version_requirement: 8.x || ^9
core_version_requirement: ^9 || ^10
dependencies:
- custom_elements:custom_elements
- lupus_decoupled:lupus_decoupled_ce_api
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment