Skip to content

Commit 6caee6b

Browse files
paolo42Pavel Jurecka
authored and
Pavel Jurecka
committed
Update extension.rst - added missing step (editing config.yml)
Following steps from the original article isn't enough, because config.yml still tries to import services.yml from the original location.
1 parent 581f46c commit 6caee6b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

cookbook/bundles/extension.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,18 @@ want to decouple the bundle for use in other projects, you want to include the
1111
service configuration in the bundle itself. This article will teach you how to
1212
do that.
1313

14+
Removing from config.yml
15+
---------------------------
16+
17+
Your default ``app/config/config.yml`` file tries to import ``services.yml`` from the original location, which would result in error. All you need to do is to find next lines::
18+
19+
imports:
20+
// other imported files
21+
- { resource: services.yml }
22+
23+
24+
and delete the line containing ``services.yml``.
25+
1426
Creating an Extension Class
1527
---------------------------
1628

0 commit comments

Comments
 (0)