Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Initial import

  • Loading branch information...
commit 50bcd68e0da1e7bfd7564511d6be7e5bdd4f34a4 0 parents
marc.weistroff authored
22 DependencyInjection/SensioBuzzExtension.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');
+ }
+}
5 README.md
@@ -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.
23 Resources/config/buzz.xml
@@ -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>
+
14 SensioBuzzBundle.php
@@ -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
+{
+}
Please sign in to comment.
Something went wrong with that request. Please try again.