You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
003-MiniWebApp and templates/init-miniwebapp/phpc.json hand-maintain includes[]:
"includes": ["src/Router.php", "config.php"]
This works today (#752 ✅ link) but breaks down for larger apps and self-host bundles (#1492) where class graphs grow. #1803 adds static PSR-4 class discovery for phpc build --project; #1762 tracks dynamic require $path.
Problem
003-MiniWebApp and
templates/init-miniwebapp/phpc.jsonhand-maintainincludes[]:This works today (#752 ✅ link) but breaks down for larger apps and self-host bundles (#1492) where class graphs grow. #1803 adds static PSR-4 class discovery for
phpc build --project; #1762 tracks dynamicrequire $path.Goal
After #1803 lands on
master:includes[]with:RouterasApp\Router(or keep global class with empty prefix — pick one, document indocs/phpc-json.md)public/index.phprequire/uselinesscript/check-init-miniwebapp-parity.shgreen (DevEx: Keep phpc init --profile miniwebapp template in sync with examples/003-MiniWebApp #695)Scope
examples/003-MiniWebApp/phpc.json+src/Router.phpnamespacetemplates/init-miniwebapp/mirrortest/unit/PhpcInitMiniWebAppTest.php/ parity scriptexamples/README.mdphpc.json section (one paragraph)make web-smoke,MiniWebAppAotExecuteTest,make examples-aot-smokeAcceptance criteria
./phpc lint --all examples/003-MiniWebApp ./phpc build --project examples/003-MiniWebApp ./script/ci-local.sh --filter MiniWebAppAotExecuteTest ./script/check-init-miniwebapp-parity.sh make examples-aot-smoke # 003 slice when LLVM readyDocker:
docker run --rm -v "$(pwd):/compiler" -w /compiler php-compiler:22.04-dev \ ./script/ci-local.sh --filter MiniWebAppAotExecuteTestDependencies
lib/AOT/ProjectGraph.php(orAutoloadDiscovery.php)Out of scope
Links