Skip to content
This repository has been archived by the owner on Dec 3, 2023. It is now read-only.

Commit

Permalink
fixup! fix psr12 set
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jan 10, 2020
1 parent 923675c commit 15c45f9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# updated to PHP CS Fixer v2.11.0
# updated to PHP CS Fixer v2.11.0 from https://github.com/FriendsOfPHP/PHP-CS-Fixer/blob/master/src/RuleSet.php

services:
# PSR1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ public function createFromContainerBuilderAndKernel(
ContainerBuilder $containerBuilder,
KernelInterface $kernel
): DelegatingLoader {
return $this->createFromContainerBuilderAndFileLocator($containerBuilder, new FileLocator($kernel));
$kernelFileLocator = new FileLocator($kernel);

return $this->createFromContainerBuilderAndFileLocator($containerBuilder, $kernelFileLocator);
}

/**
Expand All @@ -29,7 +31,8 @@ public function createContainerBuilderAndConfig(
ContainerBuilder $containerBuilder,
string $config
): DelegatingLoader {
$fileLocator = new SimpleFileLocator(dirname($config));
$directory = dirname($config);
$fileLocator = new SimpleFileLocator($directory);

return $this->createFromContainerBuilderAndFileLocator($containerBuilder, $fileLocator);
}
Expand Down

0 comments on commit 15c45f9

Please sign in to comment.