Skip to content

Commit e4084b8

Browse files
author
Kent Richards
committed
Update README with instructions for DrupalKernel bridge.
1 parent 65848cf commit e4084b8

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

README.md

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# PHP-PM HttpKernel Adapter
22

3+
## Overview
4+
35
This is a fork of PHP-PM's HttpKernel adapter for integrating Drupal with PHP-PM (therefore, also with ReactPHP).
46

57
See:
@@ -10,7 +12,7 @@ The code is in alpha -- very experimental. Last tested against `drupal-8.0.2`.
1012

1113
View / report issues at https://github.com/kentr/php-pm-drupal/issues.
1214

13-
### Setup
15+
### Setup / Usage
1416

1517
1. Install Drupal.
1618

@@ -40,3 +42,26 @@ start \
4042
--bridge=httpKernel \
4143
--bootstrap=PHPPM\\Bootstraps\\Drupal
4244
```
45+
46+
## DrupalKernel bridge
47+
48+
`\PHPPM\Bridges\DrupalKernel` extends `\PHPPM\Bridges\HttpKernel` to populate various request meta-variables specified by CGI/1.1 (RFC 3875)[http://www.faqs.org/rfcs/rfc3875.html].
49+
50+
### Setup / Usage
51+
52+
1. Install as described above.
53+
54+
2. Include the environment variables and the `--bridge` option in the php-pm start command:
55+
56+
Example:
57+
58+
```bash
59+
SCRIPT_NAME=/index.php \
60+
REQUEST_METHOD=GET \
61+
SERVER_NAME=localhost \
62+
SERVER_ADDRESS=127.0.0.1 \
63+
DOCUMENT_ROOT=/var/www/html \
64+
/var/www/html/vendor/bin/ppm start /var/www/html \
65+
--bridge=PHPPM\\Bridges\\DrupalKernel \
66+
--bootstrap=PHPPM\\Bootstraps\\Drupal
67+
```

0 commit comments

Comments
 (0)