Skip to content

Commit

Permalink
fix: Fixes symplify#24 - Always prepend default config files
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Apr 20, 2023
1 parent a991571 commit 38807f0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Kernel/MonorepoBuilderKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,14 @@ final class MonorepoBuilderKernel extends AbstractSymplifyKernel
*/
public function createFromConfigs(array $configFiles): ContainerInterface
{
$configFiles[] = __DIR__ . '/../../config/config.php';
$configFiles[] = ConsoleColorDiffConfig::FILE_PATH;
// Always prepend default config files
$configFiles = array_merge(
[
ConsoleColorDiffConfig::FILE_PATH,
__DIR__ . '/../../config/config.php',
],
$configFiles,
);

$autowireInterfacesCompilerPass = new AutowireInterfacesCompilerPass([ReleaseWorkerInterface::class]);
$compilerPasses = [$autowireInterfacesCompilerPass];
Expand Down

0 comments on commit 38807f0

Please sign in to comment.