Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Configure GitHub token for Composer
run: composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
- name: Configure GitHub token and Git ownership for Composer
run: |
git config --global --add safe.directory '*'
composer config -g github-oauth.github.com ${{ secrets.GITHUB_TOKEN }}
# Dynamically update composer.json dependencies before running make install
- name: "Restrict Doctrine ORM version"
run: composer require "doctrine/orm:${{ matrix.orm }}" --no-update --no-interaction
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
CHANGELOG for 1.x
===================
## v1.18.2 - (2026-06-12)
### Removed
- Monitoring route `/phpinfo` removed because of security concern

## v1.18.1 - (2026-05-19)
### Added
- Allow `doctrine/doctrine-fixtures-bundle` v4
Expand Down
6 changes: 0 additions & 6 deletions src/Controller/MonitoringController.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,6 @@ public function uptime(): Response
]);
}

public function phpinfo(): void // phpcs:ignore
{
phpinfo(); // phpcs:ignore
exit;
}

public function simulateIniOverride(IniOverrideConfig $config): Response
{
$data = ['memory_limit_default' => $config->getCurrentMemoryLimit()];
Expand Down
2 changes: 1 addition & 1 deletion src/Route/RouteLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function load(mixed $resource, ?string $type = null): RouteCollection
// MDT the path ^/anonymous must have PUBLIC_ACCESS in the project security.yaml config for the probe route to be accessible without user
new Route('/anonymous' . $routePathPrefix . 'uptime', ['_controller' => $controller . 'uptime'])
);
foreach (['phpinfo', 'simulateIniOverride', 'dateFormatting'] as $action) {
foreach (['simulateIniOverride', 'dateFormatting'] as $action) {
$collection->add(
$routeNamePrefix . u($action)->snake()->toString(),
new Route($routePathPrefix . u($action)->snake()->replace('_', '-')->toString(), ['_controller' => $controller . $action])
Expand Down
Loading