Skip to content

Commit f3db0cc

Browse files
author
Kent Richards
committed
Update README for installing via composer.
1 parent c8fdc8a commit f3db0cc

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

README.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,21 @@
11
# PHP-PM HttpKernel Adapter
22

3-
This is a fork of PHP-PM's HttpKernel adapter for integrating Drupal with PHP-PM (therefore, also with ReactPHP). See https://github.com/php-pm/php-pm, https://github.com/php-pm/php-pm-httpkernel.
3+
This is a fork of PHP-PM's HttpKernel adapter for integrating Drupal with PHP-PM (therefore, also with ReactPHP).
44

5-
The code is in pre-alpha -- very experimental. Last tested against `drupal-8.0.2`.
5+
See https://github.com/php-pm/php-pm, https://github.com/php-pm/php-pm-httpkernel.
6+
7+
The code is in alpha -- very experimental. Last tested against `drupal-8.0.2`.
8+
9+
View / report issues at https://github.com/kentr/php-pm-drupal/issues.
610

711
### Setup
812

9-
1. Install PHP-PM as described in the project docs.
13+
1. Install Drupal.
1014

11-
2. Replace the `vendor/php-pm/httpkernel-adapter` directory with this code.
15+
2. From the Drupal web root, install this project with composer: `composer require kentr/php-pm-drupal-adapter`. This will also install PHP-PM and the default React <-> Symfony bridge (php-pm/httpkernel-adapter).
1216

13-
3. Apply `kentr-allow-repeated-setSitePath-in-DrupalKernel.patch` to Drupal core.
17+
3. Apply these patches to Drupal core:
18+
* `vendor/kentr/php-pm-drupal-adapter/patches/kentr-allow-repeated-setSitePath-in-DrupalKernel.patch`
19+
* `vendor/kentr/php-pm-drupal-adapter/patches/stop_using-2505339-24.patch`
1420

1521
4. Start php-pm with `sudo <absolute path to web root>/vendor/bin/ppm start <absolute path to web root> --bridge=httpKernel --bootstrap=PHPPM\\Bootstraps\\Drupal`. Example: `sudo vendor/bin/ppm start /var/www/html/ --bridge=httpKernel --bootstrap=PHPPM\\Bootstraps\\Drupal`

0 commit comments

Comments
 (0)