-
Notifications
You must be signed in to change notification settings - Fork 19
Extend
Nek- edited this page Sep 4, 2011
·
2 revisions
You can extends this features:
- The feeds loader
- The feeds renderers
First your loader must to implement Nekland\FeedBundle\Loader\LoaderInterface. You must implements this methods:
- load() this method must return a Feed instance.
- getFormat() must return a simple string contains the format of the feed (in facts needed for the filename)
Add it in the configuration:
nekland_feed:
loaders:
loader_name:
id: nekland_feed.loader.loader_name
The id is the service name.
You must of course implement Nekland\FeedBundle\Renderer\RendererInterface. Just the render method who take in argument an instance of Feed.
And of course you must add it in the configuration:
nekland_feed:
renderers:
renderer_name:
id: nekland_feed.renderer.renderer_name
The id is the service name.
Don't forget to register your classes as symfony services.