Skip to content

Commit b53f9c7

Browse files
committed
minor symfony#11283 add namespace, to be able to reuse class in following examples (OskarStark)
This PR was merged into the 3.4 branch. Discussion ---------- add namespace, to be able to reuse class in following examples <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/roadmap for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `master` for features of unreleased versions). --> Commits ------- 6dbf046 add namespace, to be able to reuse class in following examples
2 parents 239e8d4 + 6dbf046 commit b53f9c7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

components/config/resources.rst

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,8 @@ defined. Each loader should implement
4040
abstract :class:`Symfony\\Component\\Config\\Loader\\FileLoader` class,
4141
which allows for recursively importing other resources::
4242

43+
namespace Acme\Config\Loader;
44+
4345
use Symfony\Component\Config\Loader\FileLoader;
4446
use Symfony\Component\Yaml\Yaml;
4547

@@ -81,8 +83,9 @@ When it is asked to load a resource, it delegates this question to the
8183
resolver has found a suitable loader, this loader will be asked to load
8284
the resource::
8385

84-
use Symfony\Component\Config\Loader\LoaderResolver;
86+
use Acme\Config\Loader\YamlUserLoader;
8587
use Symfony\Component\Config\Loader\DelegatingLoader;
88+
use Symfony\Component\Config\Loader\LoaderResolver;
8689

8790
$loaderResolver = new LoaderResolver([new YamlUserLoader($fileLocator)]);
8891
$delegatingLoader = new DelegatingLoader($loaderResolver);

0 commit comments

Comments
 (0)