Skip to content

Commit

Permalink
Update extension.rst - added missing step (editing config.yml)
Browse files Browse the repository at this point in the history
Following steps from the original article isn't enough, because config.yml still tries to import services.yml from the original location.
  • Loading branch information
paolo42 authored and Pavel Jurecka committed Mar 4, 2016
1 parent 581f46c commit 6caee6b
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions cookbook/bundles/extension.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,18 @@ want to decouple the bundle for use in other projects, you want to include the
service configuration in the bundle itself. This article will teach you how to
do that.

Removing from config.yml
---------------------------

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::

imports:
// other imported files
- { resource: services.yml }

and delete the line containing ``services.yml``.

Creating an Extension Class
---------------------------

Expand Down

0 comments on commit 6caee6b

Please sign in to comment.