Permalink
Browse files

Initial import

  • Loading branch information...
0 parents commit 50bcd68e0da1e7bfd7564511d6be7e5bdd4f34a4 marc.weistroff committed Jun 22, 2011
Showing with 64 additions and 0 deletions.
  1. +22 −0 DependencyInjection/SensioBuzzExtension.php
  2. +5 −0 README.md
  3. +23 −0 Resources/config/buzz.xml
  4. +14 −0 SensioBuzzBundle.php
@@ -0,0 +1,22 @@
+<?php
+
+namespace Sensio\Bundle\BuzzBundle\DependencyInjection;
+
+use Symfony\Component\Config\FileLocator;
+use Symfony\Component\DependencyInjection\ContainerBuilder;
+use Symfony\Component\DependencyInjection\Loader\XmlFileLoader;
+use Symfony\Component\HttpKernel\DependencyInjection\Extension;
+
+/**
+ * SensioBuzzExtension.
+ *
+ * @author Marc Weistroff <marc.weistroff@sensio.com>
+ */
+class SensioBuzzExtension extends Extension
+{
+ public function load(array $configs, ContainerBuilder $container)
+ {
+ $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
+ $loader->load('buzz.xml');
+ }
+}
@@ -0,0 +1,5 @@
+Buzz Bundle
+===========
+
+This Bundle is as simple as it can be. It just register 3 parameters and
+1 public service in order to use Buzz in your Symfony2 application.
@@ -0,0 +1,23 @@
+<?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">
+
+ <parameters>
+ <parameter key="buzz.client.class">Buzz\Client\Curl</parameter>
+ <parameter key="buzz.journal.class">Buzz\History\Journal</parameter>
+ <parameter key="buzz.browser.class">Buzz\Browser</parameter>
+ </parameters>
+
+ <services>
+ <service id="buzz.journal" class="%buzz.journal.class%" public="false" />
+ <service id="buzz.client" class="%buzz.client.class%" public="false" />
+
+ <service id="buzz" class="%buzz.browser.class%">
+ <argument type="service" id="buzz.client" />
+ <argument type="service" id="buzz.journal" />
+ </service>
+ </services>
+</container>
+
@@ -0,0 +1,14 @@
+<?php
+
+namespace Sensio\Bundle\BuzzBundle;
+
+use Symfony\Component\HttpKernel\Bundle\Bundle;
+
+/**
+ * SensioBuzzBundle.
+ *
+ * @author Marc Weistroff <marc.weistroff@sensio.com>
+ */
+class SensioBuzzBundle extends Bundle
+{
+}

0 comments on commit 50bcd68

Please sign in to comment.