Skip to content

Commit

Permalink
Remove workaround for PHP-DI#791
Browse files Browse the repository at this point in the history
  • Loading branch information
flavioheleno committed Apr 10, 2022
1 parent cecfa55 commit 913e0ad
Show file tree
Hide file tree
Showing 4 changed files with 110 additions and 108 deletions.
5 changes: 1 addition & 4 deletions bin/console.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,7 @@
$containerBuilder = new ContainerBuilder();

if (isset($_ENV['PHP_ENV']) && $_ENV['PHP_ENV'] === 'production') {
// workaround for https://github.com/PHP-DI/PHP-DI/issues/791
if (PHP_VERSION_ID < 80100) {
$containerBuilder->enableCompilation(__DIR__ . '/../var/cache');
}
$containerBuilder->enableCompilation(__DIR__ . '/../var/cache');
}

// Set up settings
Expand Down
6 changes: 5 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"prefer-stable": true,
"require": {
"php": ">=8.1",
"ext-filter": "*",
"ext-json": "*",
"ext-pcntl": "*",
"ext-pdo": "*",
"ext-posix": "*",
"ext-redis": "*",
Expand All @@ -47,10 +50,11 @@
"nyholm/dsn": "^2.0",
"nyholm/psr7": "^1.5",
"nyholm/psr7-server": "^1.0",
"php-di/php-di": "^6.3",
"php-di/php-di": "^6.4",
"phpunit/php-timer": "^5.0",
"psr/cache": "^1.0",
"psr/container": "^1.0",
"psr/http-message": "^1.0",
"psr/log": "^2.0",
"ramsey/collection": "^1.2",
"robmorgan/phinx": "^0.12.10",
Expand Down
Loading

0 comments on commit 913e0ad

Please sign in to comment.