Problem/Motivation
The Swoole PHP Server runs Drupal in CLI mode, instead of the regular mode which is used by Apache or NginX. The Swoole module for Drupal needs to know when the Swoole PHP server is used. For instance session handling is different and cookies need to be set in a special way with the Swoole PHP Server.
Proposed resolution
Add a new container parameter "asynchronous", which defaults to false.
The container parameter can be set by using a new fifth parameter to the method Drupal\Core\DrupalKernel::__construct()
or by a new sixth parameter to the method Drupal\Core\DrupalKernel::createFromRequest()
. Both new parameters will default to false.
Remaining tasks
TBD
User interface changes
None
API changes
See proposed solution.
Data model changes
None
Release notes snippet
TBD