Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Provide debug infos for config:dump-reference #20

Merged
merged 3 commits into from

3 participants

@meckhardt

To have insight into the configuration.

README.md
@@ -25,6 +25,10 @@ on the AbstractDoctrineBundle aswell:
odm:
auto_mapping: true
+or call
+
+ php app/console config:dump-reference doctrine_couch_db
@stof Collaborator
stof added a note

This is wrong. php app/console config:dump-reference doctrine_couch_db is not about configuring the bundle in your project but about dumping the reference to put it in the doc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
@meckhardt

@stof I have changed documentation.

@beberlei beberlei merged commit e5a9f81 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
Showing with 9 additions and 0 deletions.
  1. +5 −0 DependencyInjection/DoctrineCouchDBExtension.php
  2. +4 −0 README.md
View
5 DependencyInjection/DoctrineCouchDBExtension.php
@@ -56,6 +56,11 @@ public function load(array $configs, ContainerBuilder $container)
}
}
+ public function getConfiguration(array $config, ContainerBuilder $container)
+ {
+ return new Configuration($container->getParameter('kernel.debug'));
+ }
+
private function clientLoad($config, ContainerBuilder $container)
{
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
View
4 README.md
@@ -25,6 +25,10 @@ on the AbstractDoctrineBundle aswell:
odm:
auto_mapping: true
+To dump the configuration reference of this bundle
+
+ php app/console config:dump-reference doctrine_couch_db
+
## Annotations
An example of how to use annotations with CouchDB and Symfony:
Something went wrong with that request. Please try again.