commit f20ee555ea420761948f2e92ccb21bf5876be527 Author: ornicar Date: Fri Apr 8 14:11:46 2011 -0700 Initial commit diff --git a/DependencyInjection/Configuration.php b/DependencyInjection/Configuration.php new file mode 100644 index 0000000..645890e --- /dev/null +++ b/DependencyInjection/Configuration.php @@ -0,0 +1,28 @@ +root('foq_elasticsearch', 'array'); + + return $treeBuilder->buildTree(); + } +} diff --git a/DependencyInjection/FOQElasticsearchExtension.php b/DependencyInjection/FOQElasticsearchExtension.php new file mode 100644 index 0000000..2e1ad73 --- /dev/null +++ b/DependencyInjection/FOQElasticsearchExtension.php @@ -0,0 +1,23 @@ +load('config.xml'); + + $configuration = new Configuration(); + $processor = new Processor(); + + $config = $processor->process($configuration->getConfigTree(), $configs); + } +} diff --git a/FOQElasticsearchBundle.php b/FOQElasticsearchBundle.php new file mode 100644 index 0000000..b4acc87 --- /dev/null +++ b/FOQElasticsearchBundle.php @@ -0,0 +1,9 @@ +registerPrefixes(array( + ... + 'elastica' => __DIR__.'/../vendor/elastica/lib', + )); + +### Install ElasticaBundle + +#### Download + +With submodule: + git submodule add git://github.com/Exercise/ElasticaBundle src/Exercise/ElasticaBundle + +With clone: + git clone git://github.com/Exercise/ElasticaBundle src/Exercise/ElasticaBundle + +#### Register autoloading + + // app/autoload.php + + $loader->registerNamespaces(array( + ... + 'FOQ' => __DIR__.'/../src', + )); + +#### Register the bundle + + // app/AppKernel.php + + public function registerBundles() + { + return array( + // ... + new FOQ\ElasticaBundle\FOQElasticaBundle(), + // ... + ); + } diff --git a/Resources/meta/LICENSE b/Resources/meta/LICENSE new file mode 100644 index 0000000..39afd28 --- /dev/null +++ b/Resources/meta/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2011 Exercise.com, Inc + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is furnished +to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.