wexample-wex-addon-dev-php 12.23.6__tar.gz → 12.25.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (194) hide show
  1. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/PKG-INFO +4 -4
  2. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/README.md +1 -1
  3. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/pyproject.toml +3 -3
  4. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/file/php_composer_json_file.py +68 -45
  5. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/resources/design_rules/php_code.md +4 -3
  6. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/commands/service/install_local.py +8 -5
  7. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/commands/service/refresh_lock.py +12 -3
  8. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/knowledge/skeleton.md +47 -0
  9. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/samples/env/local/config.yml +11 -0
  10. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/service.yml +6 -0
  11. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/.editorconfig +17 -0
  12. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/.env +37 -0
  13. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/.gitignore +16 -0
  14. {wexample_wex_addon_dev_php-12.23.6/src/wexample_wex_addon_dev_php/services/wordpress/docker → wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton}/.wex.yml +0 -0
  15. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/assets/app.js +9 -0
  16. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/assets/styles/app.css +3 -0
  17. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/bin/console +21 -0
  18. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/composer.json +70 -0
  19. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/bundles.php +24 -0
  20. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/cache.yaml +19 -0
  21. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/csrf.yaml +11 -0
  22. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/doctrine.yaml +54 -0
  23. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/framework.yaml +15 -0
  24. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/property_info.yaml +3 -0
  25. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/routing.yaml +10 -0
  26. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/security.yaml +39 -0
  27. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/translation.yaml +5 -0
  28. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/twig.yaml +6 -0
  29. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/validator.yaml +11 -0
  30. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/packages/webpack_encore.yaml +45 -0
  31. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/preload.php +5 -0
  32. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/reference.php +1559 -0
  33. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/routes/framework.yaml +4 -0
  34. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/routes/security.yaml +3 -0
  35. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/routes.yaml +11 -0
  36. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/config/services.yaml +23 -0
  37. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/package.json +40 -0
  38. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/public/index.php +9 -0
  39. wexample_wex_addon_dev_php-12.23.6/src/wexample_wex_addon_dev_php/services/wordpress/__init__.py → wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/src/Controller/.gitignore +0 -0
  40. wexample_wex_addon_dev_php-12.23.6/src/wexample_wex_addon_dev_php/workdir/__init__.py → wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/src/Entity/.gitignore +0 -0
  41. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/src/Kernel.php +11 -0
  42. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/symfony.lock +195 -0
  43. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/templates/base.html.twig +25 -0
  44. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/webpack.config.js +78 -0
  45. {wexample_wex_addon_dev_php-12.23.6/tests/workdir → wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/wordpress}/__init__.py +0 -0
  46. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/wordpress/samples/.wex.yml +2 -0
  47. wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/workdir/__init__.py +0 -0
  48. wexample_wex_addon_dev_php-12.25.0/tests/.gitkeep +0 -0
  49. wexample_wex_addon_dev_php-12.25.0/tests/file/__init__.py +0 -0
  50. wexample_wex_addon_dev_php-12.25.0/tests/file/test_php_composer_json_lock_off_registry.py +47 -0
  51. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/tests/file/test_php_composer_json_registry_versions.py +6 -1
  52. wexample_wex_addon_dev_php-12.25.0/tests/workdir/__init__.py +0 -0
  53. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/__init__.py +0 -0
  54. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/common/__init__.py +0 -0
  55. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/common/packagist_registry_gateway.py +0 -0
  56. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/config_value/__init__.py +0 -0
  57. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/config_value/php_package_readme_config_value.py +0 -0
  58. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/const/__init__.py +0 -0
  59. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/const/tags.py +0 -0
  60. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/deployment/__init__.py +0 -0
  61. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/deployment/step/__init__.py +0 -0
  62. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/deployment/step/symfony_env_local_deployment_step.py +0 -0
  63. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/file/__init__.py +0 -0
  64. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/formatter/__init__.py +0 -0
  65. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/formatter/php_code_formatter.py +0 -0
  66. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/php_addon_manager.py +0 -0
  67. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/py.typed +0 -0
  68. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/resources/.wex.yml +0 -0
  69. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/resources/docker/Dockerfile.roave +0 -0
  70. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/resources/package_gitlab_ci.yml +0 -0
  71. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/resources/writing_rules/php_code.md +0 -0
  72. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/__init__.py +0 -0
  73. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/__init__.py +0 -0
  74. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/commands/__init__.py +0 -0
  75. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/commands/service/__init__.py +0 -0
  76. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/docker/.wex.yml +0 -0
  77. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/docker/docker-compose.yml +0 -0
  78. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/composer/service.yml +0 -0
  79. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/__init__.py +0 -0
  80. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/docker/.wex.yml +0 -0
  81. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/docker/docker-compose.yml +0 -0
  82. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/.wex.yml +0 -0
  83. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/caddy/.wex.yml +0 -0
  84. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/caddy/Caddyfile +0 -0
  85. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/docker/.wex.yml +0 -0
  86. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/docker/docker-compose.yml +0 -0
  87. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/dev/docker/.wex.yml +0 -0
  88. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/dev/docker/docker-compose.yml +0 -0
  89. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/local/docker/.wex.yml +0 -0
  90. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/local/docker/docker-compose.yml +0 -0
  91. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/prod/docker/.wex.yml +0 -0
  92. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/env/prod/docker/docker-compose.yml +0 -0
  93. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/php/.wex.yml +0 -0
  94. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/samples/php/web.ini +0 -0
  95. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/frankenphp/service.yml +0 -0
  96. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/__init__.py +0 -0
  97. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/app_service.py +0 -0
  98. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/__init__.py +0 -0
  99. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/db/__init__.py +0 -0
  100. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/db/migrate.yml +0 -0
  101. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/maintenance/__init__.py +0 -0
  102. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/maintenance/disable.yml +0 -0
  103. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/maintenance/enable.yml +0 -0
  104. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/service/__init__.py +0 -0
  105. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/service/install_local.py +0 -0
  106. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/commands/service/refresh_lock.py +0 -0
  107. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/docker/.wex.yml +0 -0
  108. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/docker/docker-compose.yml +0 -0
  109. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/samples/.wex.yml +0 -0
  110. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/samples/docker/docker-compose.yml +0 -0
  111. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/samples/env/dev/docker/docker-compose.yml +0 -0
  112. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/samples/env/prod/docker/docker-compose.yml +0 -0
  113. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/laravel/service.yml +0 -0
  114. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/__init__.py +0 -0
  115. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/ai/__init__.py +0 -0
  116. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/ai/shared/__init__.py +0 -0
  117. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/ai/shared/context.j2 +0 -0
  118. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/ai/shared/php.j2 +0 -0
  119. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/docker/.wex.yml +0 -0
  120. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/docker/docker-compose.yml +0 -0
  121. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/.wex.yml +0 -0
  122. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/caddy/.wex.yml +0 -0
  123. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/caddy/Caddyfile +0 -0
  124. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/docker/.wex.yml +0 -0
  125. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/docker/docker-compose.yml +0 -0
  126. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/dev/docker/.wex.yml +0 -0
  127. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/dev/docker/docker-compose.yml +0 -0
  128. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/local/docker/.wex.yml +0 -0
  129. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/local/docker/docker-compose.yml +0 -0
  130. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/prod/docker/.wex.yml +0 -0
  131. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/env/prod/docker/docker-compose.yml +0 -0
  132. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/php/.wex.yml +0 -0
  133. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/samples/php/web.ini +0 -0
  134. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/php/service.yml +0 -0
  135. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/__init__.py +0 -0
  136. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/commands/__init__.py +0 -0
  137. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/commands/runtime/__init__.py +0 -0
  138. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/docker/.wex.yml +0 -0
  139. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/docker/docker-compose.yml +0 -0
  140. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/env/.wex.yml +0 -0
  141. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/env/local/docker/docker-compose.yml +0 -0
  142. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/phpmyadmin/service.yml +0 -0
  143. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/__init__.py +0 -0
  144. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/__init__.py +0 -0
  145. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/agents/__init__.py +0 -0
  146. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/agents/editor/__init__.py +0 -0
  147. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/agents/editor/agent.yml +0 -0
  148. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/agents/editor/context.j2 +0 -0
  149. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/shared/__init__.py +0 -0
  150. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/ai/shared/context.j2 +0 -0
  151. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/app_service.py +0 -0
  152. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/__init__.py +0 -0
  153. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/service/__init__.py +0 -0
  154. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/service/deploy.py +0 -0
  155. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/service/install_local.py +0 -0
  156. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/service/watch.py +0 -0
  157. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/translations/__init__.py +0 -0
  158. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/commands/translations/translate.py +0 -0
  159. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/docker/.wex.yml +0 -0
  160. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/docker/docker-compose.yml +0 -0
  161. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/knowledge/__init__.py +0 -0
  162. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/knowledge/entity.md +0 -0
  163. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/.wex.yml +0 -0
  164. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/.wex.yml +0 -0
  165. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/docker-compose.yml +0 -0
  166. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/env.build +0 -0
  167. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/images/.wex.yml +0 -0
  168. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/images/Dockerfile.dev +0 -0
  169. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/docker/images/Dockerfile.release +0 -0
  170. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/dev/docker/.wex.yml +0 -0
  171. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/dev/docker/docker-compose.yml +0 -0
  172. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/local/docker/.wex.yml +0 -0
  173. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/local/docker/docker-compose.yml +0 -0
  174. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/prod/docker/.wex.yml +0 -0
  175. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/symfony/samples/env/prod/docker/docker-compose.yml +0 -0
  176. /wexample_wex_addon_dev_php-12.23.6/tests/.gitkeep → /wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/src/Repository/.gitignore +0 -0
  177. /wexample_wex_addon_dev_php-12.23.6/tests/file/__init__.py → /wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/symfony/skeleton/translations/.gitignore +0 -0
  178. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/commands/__init__.py +0 -0
  179. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/commands/service/__init__.py +0 -0
  180. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/commands/url/__init__.py +0 -0
  181. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/commands/url/replace.py +0 -0
  182. {wexample_wex_addon_dev_php-12.23.6/src/wexample_wex_addon_dev_php/services/wordpress/samples → wexample_wex_addon_dev_php-12.25.0/src/wexample_wex_addon_dev_php/services/wordpress/docker}/.wex.yml +0 -0
  183. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/docker/docker-compose.yml +0 -0
  184. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/samples/docker/docker-compose-cli.yml +0 -0
  185. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/samples/docker/docker-compose.yml +0 -0
  186. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/samples/env/dev/docker/docker-compose.yml +0 -0
  187. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/samples/env/local/wp-cli/.gitkeep +0 -0
  188. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/samples/env/prod/docker/docker-compose.yml +0 -0
  189. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/services/wordpress/service.yml +0 -0
  190. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/workdir/php_package_workdir.py +0 -0
  191. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/workdir/php_packages_suite_workdir.py +0 -0
  192. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/workdir/php_symfony_workdir.py +0 -0
  193. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/src/wexample_wex_addon_dev_php/workdir/php_workdir.py +0 -0
  194. {wexample_wex_addon_dev_php-12.23.6 → wexample_wex_addon_dev_php-12.25.0}/tests/workdir/test_php_package_workdir.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: wexample-wex-addon-dev-php
3
- Version: 12.23.6
3
+ Version: 12.25.0
4
4
  Summary: Extends wex with PHP-specific development commands for Composer, Laravel, Symfony, and WordPress services running in Docker containers
5
5
  Author-Email: weeger <contact@wexample.com>
6
6
  License: MIT
@@ -14,8 +14,8 @@ Requires-Dist: cattrs>=23.1.0
14
14
  Requires-Dist: wexample-filestate-php>=6.7.0
15
15
  Requires-Dist: wexample-filestate-symfony>=2.5.0
16
16
  Requires-Dist: wexample-wex-addon-ai>=19.1.0
17
- Requires-Dist: wexample-wex-addon-app>=35.4.0
18
- Requires-Dist: wexample-wex-addon-dev-javascript>=8.13.0
17
+ Requires-Dist: wexample-wex-addon-app>=35.6.0
18
+ Requires-Dist: wexample-wex-addon-dev-javascript>=8.14.0
19
19
  Provides-Extra: dev
20
20
  Requires-Dist: pytest; extra == "dev"
21
21
  Requires-Dist: pytest-cov; extra == "dev"
@@ -23,7 +23,7 @@ Description-Content-Type: text/markdown
23
23
 
24
24
  # wex_addon_dev_php
25
25
 
26
- Version: 12.23.6
26
+ Version: 12.25.0
27
27
 
28
28
  Extends wex with PHP-specific development commands for Composer, Laravel, Symfony, and WordPress services running in Docker containers
29
29
 
@@ -1,6 +1,6 @@
1
1
  # wex_addon_dev_php
2
2
 
3
- Version: 12.23.6
3
+ Version: 12.25.0
4
4
 
5
5
  Extends wex with PHP-specific development commands for Composer, Laravel, Symfony, and WordPress services running in Docker containers
6
6
 
@@ -6,7 +6,7 @@ build-backend = "pdm.backend"
6
6
 
7
7
  [project]
8
8
  name = "wexample-wex-addon-dev-php"
9
- version = "12.23.6"
9
+ version = "12.25.0"
10
10
  description = "Extends wex with PHP-specific development commands for Composer, Laravel, Symfony, and WordPress services running in Docker containers"
11
11
  authors = [
12
12
  { name = "weeger", email = "contact@wexample.com" },
@@ -23,8 +23,8 @@ dependencies = [
23
23
  "wexample-filestate-php>=6.7.0",
24
24
  "wexample-filestate-symfony>=2.5.0",
25
25
  "wexample-wex-addon-ai>=19.1.0",
26
- "wexample-wex-addon-app>=35.4.0",
27
- "wexample-wex-addon-dev-javascript>=8.13.0",
26
+ "wexample-wex-addon-app>=35.6.0",
27
+ "wexample-wex-addon-dev-javascript>=8.14.0",
28
28
  ]
29
29
 
30
30
  [project.readme]
@@ -149,27 +149,66 @@ class PhpComposerJsonFile(AppDependenciesConfigFileMixin, JsonFile):
149
149
 
150
150
  return require_dev.to_dict_or_none() or {}
151
151
 
152
- def get_registry_versions(self) -> dict[str, str] | None:
153
- """The latest stable version of each required package our GitLab
154
- registries serve, read from the file composer itself downloads."""
152
+ def get_lock_entries_off_registry(self, package_names: list[str]) -> list[str]:
153
+ import json
154
+ from urllib.parse import urlparse
155
+
156
+ lock = self.get_path().parent / "composer.lock"
157
+ hosts = {urlparse(registry).netloc for registry in self._get_registries()}
158
+ if not hosts or not lock.is_file():
159
+ return []
160
+ wanted = set(package_names)
161
+ locked = json.loads(lock.read_text())
162
+ return sorted(
163
+ package["name"]
164
+ for package in locked.get("packages", []) + locked.get("packages-dev", [])
165
+ if package["name"] in wanted
166
+ and (package.get("dist") or {}).get("type") != "path"
167
+ and urlparse((package.get("dist") or {}).get("url", "")).netloc
168
+ not in hosts
169
+ )
170
+
171
+ def get_registry_version(self, package_name: str) -> str | None:
172
+ """The latest stable version of a package our GitLab registries serve,
173
+ read from the file composer itself downloads; None when none does."""
155
174
  import json
156
175
  import urllib.error
157
176
  import urllib.request
158
177
 
159
178
  from packaging.version import InvalidVersion, Version
179
+
180
+ for registry in self._get_registries():
181
+ try:
182
+ with urllib.request.urlopen(
183
+ urllib.request.Request(
184
+ f"{registry}/p2/{package_name}.json",
185
+ headers=self._forge_headers(registry),
186
+ ),
187
+ timeout=15,
188
+ ) as answer:
189
+ served = json.load(answer).get("packages", {}).get(package_name) or {}
190
+ except urllib.error.HTTPError as error:
191
+ if error.code == 404:
192
+ continue
193
+ raise
194
+ stable = []
195
+ for version in served:
196
+ try:
197
+ parsed = Version(version)
198
+ except InvalidVersion:
199
+ continue
200
+ if not parsed.is_prerelease and not parsed.is_devrelease:
201
+ stable.append(parsed)
202
+ if stable:
203
+ return str(max(stable))
204
+ return None
205
+
206
+ def get_registry_versions(self) -> dict[str, str] | None:
207
+ """The latest stable version of each required package our GitLab
208
+ registries serve."""
160
209
  from wexample_helpers.helper.parallel import parallel_map
161
210
 
162
- repositories = self.read_parsed().get("repositories") or []
163
- if isinstance(repositories, dict):
164
- repositories = list(repositories.values())
165
- registries = [
166
- entry["url"].removesuffix("/packages.json")
167
- for entry in repositories
168
- if isinstance(entry, dict)
169
- and entry.get("type") == "composer"
170
- and "/packages/composer" in entry.get("url", "")
171
- ]
172
- if not registries:
211
+ if not self._get_registries():
173
212
  return None
174
213
 
175
214
  names = [
@@ -180,39 +219,10 @@ class PhpComposerJsonFile(AppDependenciesConfigFileMixin, JsonFile):
180
219
  }
181
220
  if "/" in name
182
221
  ]
183
-
184
- def latest(name: str) -> str | None:
185
- for registry in registries:
186
- try:
187
- with urllib.request.urlopen(
188
- urllib.request.Request(
189
- f"{registry}/p2/{name}.json",
190
- headers=self._forge_headers(registry),
191
- ),
192
- timeout=15,
193
- ) as answer:
194
- served = json.load(answer).get("packages", {}).get(name) or {}
195
- except urllib.error.HTTPError as error:
196
- if error.code == 404:
197
- continue
198
- raise
199
- stable = []
200
- for version in served:
201
- try:
202
- parsed = Version(version)
203
- except InvalidVersion:
204
- continue
205
- if not parsed.is_prerelease and not parsed.is_devrelease:
206
- stable.append(parsed)
207
- if stable:
208
- return str(max(stable))
209
- return None
210
-
211
222
  # One request per package and registry, most of them a 404 for a
212
223
  # package served elsewhere: side by side.
213
- found = parallel_map(names, latest, max_workers=16)
214
- versions = {name: version for name, version in zip(names, found) if version}
215
- return versions
224
+ found = parallel_map(names, self.get_registry_version, max_workers=16)
225
+ return {name: version for name, version in zip(names, found) if version}
216
226
 
217
227
  def set_private_registry_packages(self, package_names: list[str]) -> bool:
218
228
  """Bound every custom composer registry to the private packages.
@@ -275,3 +285,16 @@ class PhpComposerJsonFile(AppDependenciesConfigFileMixin, JsonFile):
275
285
  if token and match and urlparse(url).hostname == match.group(1):
276
286
  return {"PRIVATE-TOKEN": token}
277
287
  return {}
288
+
289
+ def _get_registries(self) -> list[str]:
290
+ """The composer registries of ours (GitLab) this manifest declares."""
291
+ repositories = self.read_parsed().get("repositories") or []
292
+ if isinstance(repositories, dict):
293
+ repositories = list(repositories.values())
294
+ return [
295
+ entry["url"].removesuffix("/packages.json")
296
+ for entry in repositories
297
+ if isinstance(entry, dict)
298
+ and entry.get("type") == "composer"
299
+ and "/packages/composer" in entry.get("url", "")
300
+ ]
@@ -23,9 +23,10 @@ is already a decision made.
23
23
  renamed without moving a url and a page can be turned into an endpoint without
24
24
  touching every `path()` call. Symfony's own `_profiler` and `_wdt` carry it on both
25
25
  and are left alone.
26
- The one exception is `/api`, which holds machine endpoints and, at `/api/`, the page
27
- documenting them. Two natures under one prefix: moving it to `/_api` would rewrite the
28
- `baseUrl` of every client for a gain nobody reads, so it stays as it is.
26
+ Api routes follow the same line. What the application's pages read on the session — a
27
+ table's list, a screen's action — is reached by a program and lives under `/_api/`. `/api/`
28
+ holds the application's own api, called by programs with credentials of their own, and at
29
+ `/api/` the page documenting it (symfony-api, `usage/route-prefixes`).
29
30
  - Helper classes are `final`-shaped by use: only `public static` methods, no state, no
30
31
  instantiation. A helper that needs a constructor has stopped being a helper and belongs
31
32
  in `Class/`.
@@ -80,13 +80,16 @@ elif [ "$status" -ne 0 ]; then
80
80
  fi
81
81
  for vendor in {vendors}; do
82
82
  [ -d "{VENDOR_DEV_DIR}/$vendor" ] || continue
83
- mkdir -p "vendor/$vendor"
84
83
  for src in {VENDOR_DEV_DIR}/$vendor/*/; do
85
- pkg=$(basename "$src")
86
84
  [ -f "$src/composer.json" ] || continue
87
- rm -rf "vendor/$vendor/$pkg"
88
- ln -s "${{src%/}}" "vendor/$vendor/$pkg"
89
- echo " symlinked $vendor/$pkg"
85
+ # By the package's composer name, not its directory: a checkout is named
86
+ # after its repository (syrtis-php-client), the package syrtis/php-client.
87
+ name=$(php -r 'echo json_decode(file_get_contents($argv[1]), true)["name"] ?? "";' "$src/composer.json")
88
+ [ -n "$name" ] || continue
89
+ mkdir -p "vendor/$(dirname "$name")"
90
+ rm -rf "vendor/$name"
91
+ ln -s "${{src%/}}" "vendor/$name"
92
+ echo " symlinked $name"
90
93
  done
91
94
  done
92
95
  {composer_bin} dump-autoload
@@ -80,7 +80,13 @@ def composer__service__refresh_lock(
80
80
  # a path matching nothing: an empty directory matches it, and
81
81
  # holding no composer.json it adds no package. composer.json
82
82
  # itself stays untouched, its hash in the lock with it.
83
- f"cd {APP_DIR} && php -r '"
83
+ # package.json kept as it was: Symfony Flex, a plugin --no-scripts
84
+ # does not stop, syncs it from vendor/ on an update — in the app's
85
+ # running container, the one with a vendor/ — turning the `link:`
86
+ # the apps declare into `file:` copies. A lock refresh writes the
87
+ # lock.
88
+ f"cd {APP_DIR} && {{ cp package.json /tmp/package.json.kept 2> /dev/null || true; }}"
89
+ " && php -r '"
84
90
  '$c = json_decode(file_get_contents("composer.json"), true);'
85
91
  ' foreach ($c["repositories"] ?? [] as $r) {'
86
92
  ' $u = $r["url"] ?? "";'
@@ -94,8 +100,11 @@ def composer__service__refresh_lock(
94
100
  # along (symfony/security-core 7.4 → 8.1) the app was never run on.
95
101
  " --minimal-changes"
96
102
  f" --with-all-dependencies {composer_packages}"
97
- f" && {{ [ -d vendor ] || {composer_bin} install --no-interaction"
98
- " --no-progress --no-scripts --no-autoloader --ignore-platform-req='ext-*'; }",
103
+ "; status=$?"
104
+ "; [ -f /tmp/package.json.kept ] && cp /tmp/package.json.kept package.json"
105
+ "; [ $status -eq 0 ] || exit $status"
106
+ f"; [ -d vendor ] || {composer_bin} install --no-interaction"
107
+ " --no-progress --no-scripts --no-autoloader --ignore-platform-req='ext-*'",
99
108
  ],
100
109
  image=COMPOSER_LOCK_IMAGE,
101
110
  mount=APP_DIR,
@@ -0,0 +1,47 @@
1
+ # The application skeleton
2
+
3
+ `skeleton/` is what a new Symfony app starts from: Symfony 7.4 (LTS) with the wexample
4
+ pillars, `wexample/symfony-api` and what it pulls — forms, security, design system,
5
+ loader and their own dependencies. `app::service/install symfony` copies it at the root
6
+ of an app that has no `composer.json` yet, file by file and never over an existing one;
7
+ from then on the files are the app's, and the skeleton never touches them again.
8
+
9
+ It is frozen on purpose. An app evolves through its own `composer update` and recipes,
10
+ not through this directory, so the skeleton only has to be right on the day an app is
11
+ born. Change it deliberately, when the Symfony line or the pillars change.
12
+
13
+ ## What it holds, and what it leaves out
14
+
15
+ It holds the files `composer create-project` and the recipes write, with the bundles
16
+ registered as `rectify` registers them from each package's `extra.install`.
17
+
18
+ It leaves out what is produced or owned elsewhere:
19
+
20
+ - `vendor/`, `var/`, `public/bundles/`, `composer.lock` — installed or built; a new app
21
+ resolves its own versions.
22
+ - `.env.dev` — it carries a secret generated per app.
23
+ - `compose.yaml` and `compose.override.yaml` — Docker is wex's, through the service's
24
+ `samples/`.
25
+ - `README.md`, `version.txt`, `AGENTS.md`, `CLAUDE.md`, `.iml`, the wex lines of
26
+ `.gitignore`, and `name` / `version` in `composer.json` — `rectify` writes them per app.
27
+
28
+ `nikic/php-parser` is required by the skeleton itself: the compiler pass of
29
+ `wexample/symfony-routing` loads every service class, Symfony's translation extractor
30
+ among them, and that one needs the parser.
31
+
32
+ ## Regenerating it
33
+
34
+ In a scratch directory, with the image the apps build from:
35
+
36
+ ```
37
+ docker run --rm -u "$(id -u):$(id -g)" -e COMPOSER_HOME=/tmp/ch -v "$PWD":/app -w /app \
38
+ gitlab-docker.wexample.com/wexample-public/docker/frankenphp:<tag>-build sh -c '
39
+ composer create-project symfony/skeleton:"7.4.*" app --no-interaction &&
40
+ cd app && composer require wexample/symfony-api nikic/php-parser --no-interaction'
41
+ cd app && wex app::app/init --type php-symfony --name skeleton
42
+ ```
43
+
44
+ Check it boots — `bin/console cache:clear`, `lint:container`, and `cache:clear` with
45
+ `APP_ENV=prod APP_DEBUG=0` — then copy it into `skeleton/` without what the list above
46
+ leaves out, and restore Symfony's own `.gitignore` (the recipe blocks only). `.env` is
47
+ ignored by this repository's `.gitignore`: add it with `git add -f`.
@@ -0,0 +1,11 @@
1
+ # The local checkouts of the suites this app develops against, mounted over its
2
+ # vendor/ and node_modules/ by `app::setup/install`. The paths are this machine's,
3
+ # said once in wex's own .wex/local/env.yml (LOCAL_*), not in each app.
4
+ libraries:
5
+ - ${LOCAL_WEXAMPLE_PACKAGES_JS_SUITE_PATH}
6
+ - ${LOCAL_WEXAMPLE_PACKAGES_PHP_SUITE_PATH}
7
+ local_packages:
8
+ javascript:
9
+ wexample: ${LOCAL_WEXAMPLE_PACKAGES_JS_SUITE_PATH}packages/
10
+ php:
11
+ wexample: ${LOCAL_WEXAMPLE_PACKAGES_PHP_SUITE_PATH}packages/wexample/
@@ -7,3 +7,9 @@ install_config:
7
7
  "docker.images.dev.tag": "{{ app_name }}:local"
8
8
  "docker.images.release.dockerfile": ".wex/docker/images/Dockerfile.release"
9
9
  "docker.images.release.tag": "{{ app_name }}-release:local"
10
+ # skeleton/ is a Symfony 7.4 app with the wexample pillars (symfony-api and what it
11
+ # pulls: forms, security, design system, loader), copied at the root of an app that
12
+ # has no composer.json yet. Frozen on purpose; regenerating it is described in
13
+ # knowledge/skeleton.md.
14
+ skeleton:
15
+ unless: composer.json
@@ -0,0 +1,17 @@
1
+ # editorconfig.org
2
+
3
+ root = true
4
+
5
+ [*]
6
+ charset = utf-8
7
+ end_of_line = lf
8
+ indent_size = 4
9
+ indent_style = space
10
+ insert_final_newline = true
11
+ trim_trailing_whitespace = true
12
+
13
+ [{compose.yaml,compose.*.yaml}]
14
+ indent_size = 2
15
+
16
+ [*.md]
17
+ trim_trailing_whitespace = false
@@ -0,0 +1,37 @@
1
+ # In all environments, the following files are loaded if they exist,
2
+ # the latter taking precedence over the former:
3
+ #
4
+ # * .env contains default values for the environment variables needed by the app
5
+ # * .env.local uncommitted file with local overrides
6
+ # * .env.$APP_ENV committed environment-specific defaults
7
+ # * .env.$APP_ENV.local uncommitted environment-specific overrides
8
+ #
9
+ # Real environment variables win over .env files.
10
+ #
11
+ # DO NOT DEFINE PRODUCTION SECRETS IN THIS FILE NOR IN ANY OTHER COMMITTED FILES.
12
+ # https://symfony.com/doc/current/configuration/secrets.html
13
+ #
14
+ # Run "composer dump-env prod" to compile .env files for production use (requires symfony/flex >=1.2).
15
+ # https://symfony.com/doc/current/best_practices.html#use-environment-variables-for-infrastructure-configuration
16
+
17
+ ###> symfony/framework-bundle ###
18
+ APP_ENV=dev
19
+ APP_SECRET=
20
+ APP_SHARE_DIR=var/share
21
+ ###< symfony/framework-bundle ###
22
+
23
+ ###> symfony/routing ###
24
+ # Configure how to generate URLs in non-HTTP contexts, such as CLI commands.
25
+ # See https://symfony.com/doc/current/routing.html#generating-urls-in-commands
26
+ DEFAULT_URI=http://localhost
27
+ ###< symfony/routing ###
28
+
29
+ ###> doctrine/doctrine-bundle ###
30
+ # Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
31
+ # IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
32
+ #
33
+ # DATABASE_URL="sqlite:///%kernel.project_dir%/var/data_%kernel.environment%.db"
34
+ # DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=8.0.32&charset=utf8mb4"
35
+ # DATABASE_URL="mysql://app:!ChangeMe!@127.0.0.1:3306/app?serverVersion=10.11.2-MariaDB&charset=utf8mb4"
36
+ DATABASE_URL="postgresql://app:!ChangeMe!@127.0.0.1:5432/app?serverVersion=16&charset=utf8"
37
+ ###< doctrine/doctrine-bundle ###
@@ -0,0 +1,16 @@
1
+ ###> symfony/framework-bundle ###
2
+ /.env.local
3
+ /.env.local.php
4
+ /.env.*.local
5
+ /config/secrets/prod/prod.decrypt.private.php
6
+ /public/bundles/
7
+ /var/
8
+ /vendor/
9
+ ###< symfony/framework-bundle ###
10
+
11
+ ###> symfony/webpack-encore-bundle ###
12
+ /node_modules/
13
+ /public/build/
14
+ npm-debug.log
15
+ yarn-error.log
16
+ ###< symfony/webpack-encore-bundle ###
@@ -0,0 +1,9 @@
1
+ /*
2
+ * Welcome to your app's main JavaScript file!
3
+ *
4
+ * We recommend including the built version of this JavaScript file
5
+ * (and its CSS file) in your base layout (base.html.twig).
6
+ */
7
+
8
+ // any CSS you import will output into a single css file (app.css in this case)
9
+ import './styles/app.css';
@@ -0,0 +1,21 @@
1
+ #!/usr/bin/env php
2
+ <?php
3
+
4
+ use App\Kernel;
5
+ use Symfony\Bundle\FrameworkBundle\Console\Application;
6
+
7
+ if (!is_dir(dirname(__DIR__).'/vendor')) {
8
+ throw new LogicException('Dependencies are missing. Try running "composer install".');
9
+ }
10
+
11
+ if (!is_file(dirname(__DIR__).'/vendor/autoload_runtime.php')) {
12
+ throw new LogicException('Symfony Runtime is missing. Try running "composer require symfony/runtime".');
13
+ }
14
+
15
+ require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
16
+
17
+ return function (array $context) {
18
+ $kernel = new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
19
+
20
+ return new Application($kernel);
21
+ };
@@ -0,0 +1,70 @@
1
+ {
2
+ "type": "project",
3
+ "license": "proprietary",
4
+ "minimum-stability": "stable",
5
+ "prefer-stable": true,
6
+ "require": {
7
+ "php": ">=8.2",
8
+ "ext-ctype": "*",
9
+ "ext-iconv": "*",
10
+ "nikic/php-parser": "^5.9",
11
+ "symfony/console": "7.4.*",
12
+ "symfony/dotenv": "7.4.*",
13
+ "symfony/flex": "^2",
14
+ "symfony/framework-bundle": "7.4.*",
15
+ "symfony/runtime": "7.4.*",
16
+ "symfony/yaml": "7.4.*",
17
+ "wexample/symfony-api": "*",
18
+ "wexample/symfony-filestate": ">=5.0.8"
19
+ },
20
+ "config": {
21
+ "allow-plugins": {
22
+ "php-http/discovery": true,
23
+ "symfony/flex": true,
24
+ "symfony/runtime": true
25
+ },
26
+ "bump-after-update": true,
27
+ "sort-packages": true
28
+ },
29
+ "autoload": {
30
+ "psr-4": {
31
+ "App\\": "src/"
32
+ }
33
+ },
34
+ "autoload-dev": {
35
+ "psr-4": {
36
+ "App\\Tests\\": "tests/"
37
+ }
38
+ },
39
+ "replace": {
40
+ "symfony/polyfill-ctype": "*",
41
+ "symfony/polyfill-iconv": "*",
42
+ "symfony/polyfill-php72": "*",
43
+ "symfony/polyfill-php73": "*",
44
+ "symfony/polyfill-php74": "*",
45
+ "symfony/polyfill-php80": "*",
46
+ "symfony/polyfill-php81": "*",
47
+ "symfony/polyfill-php82": "*"
48
+ },
49
+ "scripts": {
50
+ "auto-scripts": {
51
+ "cache:clear": "symfony-cmd",
52
+ "assets:install %PUBLIC_DIR%": "symfony-cmd"
53
+ },
54
+ "post-install-cmd": [
55
+ "@auto-scripts"
56
+ ],
57
+ "post-update-cmd": [
58
+ "@auto-scripts"
59
+ ]
60
+ },
61
+ "conflict": {
62
+ "symfony/symfony": "*"
63
+ },
64
+ "extra": {
65
+ "symfony": {
66
+ "allow-contrib": false,
67
+ "require": "7.4.*"
68
+ }
69
+ }
70
+ }
@@ -0,0 +1,24 @@
1
+ <?php
2
+
3
+ return [
4
+ Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
5
+ Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
6
+ Symfony\Bundle\TwigBundle\TwigBundle::class => ['all' => true],
7
+ Wexample\SymfonySecurity\WexampleSymfonySecurityBundle::class => ['all' => true],
8
+ Symfony\Bundle\SecurityBundle\SecurityBundle::class => ['all' => true],
9
+ Wexample\SymfonyDev\WexampleSymfonyDevBundle::class => ['all' => true],
10
+ Symfony\WebpackEncoreBundle\WebpackEncoreBundle::class => ['all' => true],
11
+ Wexample\SymfonyApi\WexampleSymfonyApiBundle::class => ['all' => true],
12
+ Wexample\SymfonyCheck\WexampleSymfonyCheckBundle::class => ['all' => true],
13
+ Wexample\SymfonyContent\WexampleSymfonyContentBundle::class => ['all' => true],
14
+ Wexample\SymfonyDesignSystem\WexampleSymfonyDesignSystemBundle::class => ['all' => true],
15
+ Wexample\SymfonyForms\WexampleSymfonyFormsBundle::class => ['all' => true],
16
+ Wexample\SymfonyHelpers\WexampleSymfonyHelpersBundle::class => ['all' => true],
17
+ Wexample\SymfonyLoader\WexampleSymfonyLoaderBundle::class => ['all' => true],
18
+ Wexample\SymfonyPreference\WexampleSymfonyPreferenceBundle::class => ['all' => true],
19
+ Wexample\SymfonyRouting\WexampleSymfonyRoutingBundle::class => ['all' => true],
20
+ Wexample\SymfonyTemplate\WexampleSymfonyTemplateBundle::class => ['all' => true],
21
+ Wexample\SymfonyTesting\WexampleSymfonyTestingBundle::class => ['test' => true],
22
+ Wexample\SymfonyTranslations\WexampleSymfonyTranslationsBundle::class => ['all' => true],
23
+ Wexample\SymfonyFilestate\WexampleSymfonyFilestateBundle::class => ['all' => true],
24
+ ];
@@ -0,0 +1,19 @@
1
+ framework:
2
+ cache:
3
+ # Unique name of your app: used to compute stable namespaces for cache keys.
4
+ #prefix_seed: your_vendor_name/app_name
5
+
6
+ # The "app" cache stores to the filesystem by default.
7
+ # The data in this cache should persist between deploys.
8
+ # Other options include:
9
+
10
+ # Redis
11
+ #app: cache.adapter.redis
12
+ #default_redis_provider: redis://localhost
13
+
14
+ # APCu (not recommended with heavy random-write workloads as memory fragmentation can cause perf issues)
15
+ #app: cache.adapter.apcu
16
+
17
+ # Namespaced pools use the above "app" backend by default
18
+ #pools:
19
+ #my.dedicated.cache: null
@@ -0,0 +1,11 @@
1
+ # Enable stateless CSRF protection for forms and logins/logouts
2
+ framework:
3
+ form:
4
+ csrf_protection:
5
+ token_id: submit
6
+
7
+ csrf_protection:
8
+ stateless_token_ids:
9
+ - submit
10
+ - authenticate
11
+ - logout
@@ -0,0 +1,54 @@
1
+ doctrine:
2
+ dbal:
3
+ url: '%env(resolve:DATABASE_URL)%'
4
+
5
+ # IMPORTANT: You MUST configure your server version,
6
+ # either here or in the DATABASE_URL env var (see .env file)
7
+ #server_version: '16'
8
+
9
+ profiling_collect_backtrace: '%kernel.debug%'
10
+ use_savepoints: true
11
+ orm:
12
+ auto_generate_proxy_classes: true
13
+ enable_lazy_ghost_objects: true
14
+ report_fields_where_declared: true
15
+ validate_xml_mapping: true
16
+ naming_strategy: doctrine.orm.naming_strategy.underscore_number_aware
17
+ identity_generation_preferences:
18
+ Doctrine\DBAL\Platforms\PostgreSQLPlatform: identity
19
+ auto_mapping: true
20
+ mappings:
21
+ App:
22
+ type: attribute
23
+ is_bundle: false
24
+ dir: '%kernel.project_dir%/src/Entity'
25
+ prefix: 'App\Entity'
26
+ alias: App
27
+ controller_resolver:
28
+ auto_mapping: false
29
+
30
+ when@test:
31
+ doctrine:
32
+ dbal:
33
+ # "TEST_TOKEN" is typically set by ParaTest
34
+ dbname_suffix: '_test%env(default::TEST_TOKEN)%'
35
+
36
+ when@prod:
37
+ doctrine:
38
+ orm:
39
+ auto_generate_proxy_classes: false
40
+ proxy_dir: '%kernel.build_dir%/doctrine/orm/Proxies'
41
+ query_cache_driver:
42
+ type: pool
43
+ pool: doctrine.system_cache_pool
44
+ result_cache_driver:
45
+ type: pool
46
+ pool: doctrine.result_cache_pool
47
+
48
+ framework:
49
+ cache:
50
+ pools:
51
+ doctrine.result_cache_pool:
52
+ adapter: cache.app
53
+ doctrine.system_cache_pool:
54
+ adapter: cache.system
@@ -0,0 +1,15 @@
1
+ # see https://symfony.com/doc/current/reference/configuration/framework.html
2
+ framework:
3
+ secret: '%env(APP_SECRET)%'
4
+
5
+ # Note that the session will be started ONLY if you read or write from it.
6
+ session: true
7
+
8
+ #esi: true
9
+ #fragments: true
10
+
11
+ when@test:
12
+ framework:
13
+ test: true
14
+ session:
15
+ storage_factory_id: session.storage.factory.mock_file