Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Another fix run

  • Loading branch information...
commit a43f35c2ecfa3f8beb7ba83ada7d8c9cf9a7bcd4 1 parent 3a39f01
Benjamin Eberlei authored

Showing 1 changed file with 17 additions and 13 deletions. Show diff stats Hide diff stats

  1. 30  README.md
30  README.md
Source Rendered
@@ -61,6 +61,7 @@ class Response
61 61
         $this->status = $status;
62 62
     }
63 63
 }
  64
+```
64 65
 
65 66
 ### Create
66 67
 
@@ -72,6 +73,7 @@ $entityManager->persist($response);
72 73
 //.... persists as much as you can :-)
73 74
 
74 75
 $entityManager->flush();
  76
+```
75 77
 
76 78
 ### Read
77 79
 
@@ -118,28 +120,30 @@ $config->setMappingDriverImpl($metadata);
118 120
 $config->setMetadataCache($cache);
119 121
 
120 122
 $entityManager = new EntityManager($storage, $config);
  123
+```
121 124
 
122 125
 If you want to use WindowsAzure Table you can use the following configuration
123 126
 to instantiate the storage:
124 127
 
125 128
 ```php
126  
-    use Doctrine\KeyValueStore\Storage\AzureSdkTableStorage;
127  
-    use WindowsAzure\Common\ServicesBuilder;
  129
+use Doctrine\KeyValueStore\Storage\AzureSdkTableStorage;
  130
+use WindowsAzure\Common\ServicesBuilder;
128 131
 
129  
-    $connectionString = ""; // Windows Azure Connection string
130  
-    $builder = ServicesBuilder::getInstance();
131  
-    $client = $builder->createTableService($connectionString);
  132
+$connectionString = ""; // Windows Azure Connection string
  133
+$builder = ServicesBuilder::getInstance();
  134
+$client = $builder->createTableService($connectionString);
132 135
 
133  
-    $storage = new AzureSdkTableStorage($client);
  136
+$storage = new AzureSdkTableStorage($client);
  137
+```
134 138
 
135 139
 If you want to use Doctrine DBAL as backend:
136 140
 
137 141
 ```php
138  
-    $params = array();
139  
-    $tableName = "storage";
140  
-    $idColumnName = "id";
141  
-    $dataColumnName = "serialized_data";
142  
-
143  
-    $conn = DriverManager::getConnection($params);
144  
-    $storage = new DBALStorage($conn, $tableName, $idColumnName, $dataColumnName);
  142
+$params = array();
  143
+$tableName = "storage";
  144
+$idColumnName = "id";
  145
+$dataColumnName = "serialized_data";
145 146
 
  147
+$conn = DriverManager::getConnection($params);
  148
+$storage = new DBALStorage($conn, $tableName, $idColumnName, $dataColumnName);
  149
+```

0 notes on commit a43f35c

Please sign in to comment.
Something went wrong with that request. Please try again.