grasmash
Repos
141
Followers
59
Following
10

Acquia's toolset for automating Drupal 8 and 9 development, testing, and deployment.

426
381

Composer-based installer for a Drupal 8 project utilizing BLT (READ-ONLY SUBTREE SPLIT)

9
23

Lightning was a base distribution for fast and feature-rich Drupal. Support ended on November 2, 2021 and it is no longer maintained.

191
109

PHing Is Not GNU make; it's a PHP project build system or build tool based on Apache Ant.

1131
306

The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.

924
559

Simple patches plugin for Composer

1275
219

Events

issue comment
Allow or document how invoke Lambda function locally via Bref

I've read through both of those docs, but they only offer how to test 1) event driven invokes, and 3) direct http (bypassing bref).

I've tried this running spinning up Docker and running this in a test:

        $event = json_decode(file_get_contents(__DIR__ . '/fixtures/request.json'), TRUE);
        $handler = new FpmHandler('index.php');
        shell_exec('pkill -9 php-fpm');
        $handler->start();
        $invoker = new Invoker;
        $context = new Context('test', 0, '', '');
        $result = $invoker->invoke($handler, $event, $context);
        $handler->stop();

However, I get:

[23-Sep-2022 17:50:40] NOTICE: Failed implicitly binding to ::, retrying with 0.0.0.0
[23-Sep-2022 17:50:40] ERROR: unable to bind listening socket for address '9001': Address already in use (98)
[23-Sep-2022 17:50:40] ERROR: FPM initialization failed

Because FPM is already running in the container. For some reason I can't seem to kill the process.

Created at 1 week ago
opened issue
Allow or document how to test bref locally

I currently use bref for a Lambda function that is exposed via a Function URL. I can test my function locally by running a local php server and sending a Curl request directly to my handler script. However, this bypasses all of bref's response handling.

Is it possible to locally invoke the Lambda function in a way that routes the request through bref?

Created at 1 week ago
Created at 2 weeks ago

Added tests.

Add composer scripts

Created at 3 weeks ago
Suuport AWS Lambda Function URLs
Created at 3 weeks ago
create branch
grasmash create branch master
Created at 3 weeks ago
create repository
grasmash create repository
Created at 3 weeks ago

Set composer platform php to 8.0.2.

Created at 2 months ago

Composer update.

Created at 2 months ago
issue comment
RADX-628 | D7 docroot update command

@rahulgupta-acquia Thanks for the overview.

  • You should roll FileSystemUtility into LocalMachineHelper. They seem to have the same job.
  • UpdatePackage should be named PackageUpdater. It's a service that does a thing. That's a typical naming pattern for a service. E.g., logger, manager, etc.
  • PackagesInfo and CheckUpdatesAvailable don't really make sense as either object models or services. I'd expect something like DrupalPackageManager to handle that set of responsibilities.
Created at 2 months ago