Skip to content

Commit

Permalink
fix issue #313 for branch 6.0 of CompatInfo
Browse files Browse the repository at this point in the history
  • Loading branch information
llaville committed Dec 27, 2021
1 parent af2089d commit 947a916
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG-6.x.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ using the [Keep a CHANGELOG](http://keepachangelog.com) principles.

## [Unreleased]

### Fixed

- [GH-313](https://github.com/llaville/php-compatinfo/issues/313) Cannot install CompatInfo as a vendor dependency

## [6.0.1] - 2021-12-13

### Fixed
Expand Down
7 changes: 6 additions & 1 deletion config/set/default.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,12 @@
* @return void
*/
return static function (ContainerConfigurator $containerConfigurator): void {
$containerConfigurator->import(dirname(__DIR__, 2) . '/vendor/bartlett/php-compatinfo-db/config/set/default.php');
if (file_exists(dirname(__DIR__, 2) . '/vendor')) {
$configSet = dirname(__DIR__, 2) . '/vendor/bartlett/php-compatinfo-db/config/set/default.php';
} else {
$configSet = dirname(__DIR__, 3) . '/php-compatinfo-db/config/set/default.php';
}
$containerConfigurator->import($configSet);
$containerConfigurator->import(__DIR__ . '/common.php');
$containerConfigurator->import(__DIR__ . '/../packages/messenger.php');

Expand Down

0 comments on commit 947a916

Please sign in to comment.