Skip to content

Commit 060d8ab

Browse files
committed
[Config] Fix missing argument
If YamlUserLoader corresponds to the definition above (which extends FileLocator), then it should receive a FileLocatorInterface for the first argument of its constructor.
1 parent 0a5ec36 commit 060d8ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/config/resources.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ has found a suitable loader, this loader will be asked to load the resource::
7171
use Symfony\Component\Config\Loader\LoaderResolver;
7272
use Symfony\Component\Config\Loader\DelegatingLoader;
7373

74-
$loaderResolver = new LoaderResolver(array(new YamlUserLoader));
74+
$loaderResolver = new LoaderResolver(array(new YamlUserLoader($locator)));
7575
$delegatingLoader = new DelegatingLoader($loaderResolver);
7676

7777
$delegatingLoader->load(__DIR__.'/users.yml');

0 commit comments

Comments
 (0)