Skip to content

Instantly share code, notes, and snippets.

@seiffert
Created December 11, 2011 18:31
Show Gist options
  • Save seiffert/1461978 to your computer and use it in GitHub Desktop.
Save seiffert/1461978 to your computer and use it in GitHub Desktop.
Mayflower Blog - ZF vs. Symfony2 - Sample Service Definition
<?xml version="1.0" ?>
<container xmlns="http://symfony.com/schema/dic/services"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://symfony.com/schema/dic/services http://symfony.com/schema/dic/services/services-1.0.xsd">
<services>
<service id="welcome.mailer.acme.user" class="Acme\UserBundle\WelcomeMailer" public="false">
<tag name="welcome.mailer" />
<argument type="service" id="acme.mailer" />
</service>
</services>
</container>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment