Skip to content

Commit c426dbb

Browse files
committed
Fix extension/config paths
1 parent c85de08 commit c426dbb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bundles/extension.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ follow these conventions (but later you'll learn how to skip them if needed):
3030

3131
This is how the extension of an AcmeHelloBundle should look like::
3232

33-
// src/Acme/HelloBundle/DependencyInjection/AcmeHelloExtension.php
33+
// src/DependencyInjection/AcmeHelloExtension.php
3434
namespace Acme\HelloBundle\DependencyInjection;
3535

3636
use Symfony\Component\DependencyInjection\ContainerBuilder;
@@ -87,7 +87,7 @@ but it is more common if you put these definitions in a configuration file
8787
(using the YAML, XML or PHP format).
8888

8989
For instance, assume you have a file called ``services.xml`` in the
90-
``Resources/config/`` directory of your bundle, your ``load()`` method looks like::
90+
``config/`` directory of your bundle, your ``load()`` method looks like::
9191

9292
use Symfony\Component\Config\FileLocator;
9393
use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
@@ -97,7 +97,7 @@ For instance, assume you have a file called ``services.xml`` in the
9797
{
9898
$loader = new XmlFileLoader(
9999
$container,
100-
new FileLocator(__DIR__.'/../config')
100+
new FileLocator(__DIR__.'/../../config')
101101
);
102102
$loader->load('services.xml');
103103
}

0 commit comments

Comments
 (0)