From d37159b321bb295006884d4879c83d957c3e45b9 Mon Sep 17 00:00:00 2001 From: Alan Gabriel Bem Date: Thu, 23 Aug 2012 18:30:05 +0200 Subject: [PATCH] added initial bundle skeleton --- DependencyInjection/Configuration.php | 25 ++++++++++++++++++++++ DependencyInjection/ShoploExtension.php | 28 +++++++++++++++++++++++++ Resources/config/routing.xml | 7 +++++++ Resources/config/services.xml | 8 +++++++ ShoploBundle.php | 10 +++++++++ 5 files changed, 78 insertions(+) create mode 100644 DependencyInjection/Configuration.php create mode 100644 DependencyInjection/ShoploExtension.php create mode 100644 Resources/config/routing.xml create mode 100644 Resources/config/services.xml create mode 100644 ShoploBundle.php diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php new file mode 100644 index 0000000..d1b8c69 --- /dev/null +++ b/DependencyInjection/Configuration.php @@ -0,0 +1,25 @@ +root('shoplo'); + + return $treeBuilder; + } +} diff --git a/DependencyInjection/ShoploExtension.php b/DependencyInjection/ShoploExtension.php new file mode 100644 index 0000000..1191daf --- /dev/null +++ b/DependencyInjection/ShoploExtension.php @@ -0,0 +1,28 @@ +processConfiguration($configuration, $configs); + + $loader = new Loader\XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config')); + $loader->load('services.xml'); + } +} diff --git a/Resources/config/routing.xml b/Resources/config/routing.xml new file mode 100644 index 0000000..8fde1ca --- /dev/null +++ b/Resources/config/routing.xml @@ -0,0 +1,7 @@ + + + + + diff --git a/Resources/config/services.xml b/Resources/config/services.xml new file mode 100644 index 0000000..2fd29c9 --- /dev/null +++ b/Resources/config/services.xml @@ -0,0 +1,8 @@ + + + + + + diff --git a/ShoploBundle.php b/ShoploBundle.php new file mode 100644 index 0000000..d745e75 --- /dev/null +++ b/ShoploBundle.php @@ -0,0 +1,10 @@ +