Skip to content

Commit e453534

Browse files
author
Alexandre Courtiol
committed
Add pub/get.php worker shim (issues #2, #3)
Ships the missing third pub-dir worker shim alongside pub/index.php (App\Http) and pub/static.php (App\StaticResource), routing media on-demand processing through the FrankenPHP worker pool instead of a fresh per-request Magento bootstrap. pub/get.php -> \$frankengento = \Opengento\Application\App\Media::class; -> include 'worker.php'; The Media app implementation lands in the companion PR at opengento/magento2-application (see PR description for the link). composer.json ------------- - Adds pub/get.php to extra.map so the file is copied into the project's pub/ directory at install time (same mechanism as the existing index.php and static.php entries). - Bumps the require constraints to match the PHP 8.4+ / Magento 2.4.8+ support matrix: php: (new) ^8.4 magento/magento2-base: * -> ^2.4.8 opengento/module-application: >=0.5 -> >=0.7 The >=0.7 bump assumes opengento/module-application releases a 0.7 after merging the companion PR. Tighten or loosen as appropriate once the version is published. Closes #2 and #3.
1 parent 631f9e0 commit e453534

2 files changed

Lines changed: 14 additions & 0 deletions

File tree

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@
5252
[
5353
"pub/static.php",
5454
"pub/static.php"
55+
],
56+
[
57+
"pub/get.php",
58+
"pub/get.php"
5559
]
5660
]
5761
}

pub/get.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?php
2+
/**
3+
* Copyright © OpenGento, All rights reserved.
4+
* See LICENSE bundled with this library for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
$frankengento = \Opengento\Application\App\Media::class;
9+
10+
include 'worker.php';

0 commit comments

Comments
 (0)