@@ -231,7 +231,7 @@ class AuthCode extends BaseAuthCode
231231}
232232```
233233
234- __ Note__ : If you don't have ` auto_mapping ` activated in your doctrine configuration you need to add
234+ __ Note__ : If you don't have ` auto_mapping ` activated in your doctrine configuration you need to add
235235` FOSOAuthServerBundle ` to your mappings in ` config.yml ` .
236236
237237#### Propel
@@ -241,7 +241,7 @@ You have to install the [TypehintableBehavior](https://github.com/willdurand/Typ
241241
242242By using [ Composer] ( http://getcomposer.org ) , you just have to add the following line in your ` composer.json ` :
243243
244- ``` js
244+ ``` json
245245{
246246 "require" : {
247247 "willdurand/propel-typehintable-behavior" : " *"
@@ -285,10 +285,9 @@ namespace Acme\ApiBundle\Document;
285285
286286use FOS\OAuthServerBundle\Document\Client as BaseClient;
287287
288- class Client extends BaseClient
288+ class Client extends BaseClient
289289{
290290 protected $id;
291-
292291}
293292```
294293
@@ -303,9 +302,9 @@ class Client extends BaseClient
303302 <document name =" Acme\ApiBundle\Document\Client" db =" acme" collection =" oauthClient" customId =" true" >
304303 <field fieldName =" id" id =" true" strategy =" AUTO" />
305304 </document >
306-
305+
307306</doctrine-mongo-mapping >
308- ```
307+ ```
309308
310309``` php
311310<?php
@@ -317,11 +316,11 @@ namespace Acme\ApiBundle\Document;
317316use FOS\OAuthServerBundle\Document\AuthCode as BaseAuthCode;
318317use FOS\OAuthServerBundle\Model\ClientInterface;
319318
320- class AuthCode extends BaseAuthCode
319+ class AuthCode extends BaseAuthCode
321320{
322321 protected $id;
323322 protected $client;
324-
323+
325324 public function getClient()
326325 {
327326 return $this->client;
@@ -331,9 +330,7 @@ class AuthCode extends BaseAuthCode
331330 {
332331 $this->client = $client;
333332 }
334-
335333}
336-
337334```
338335
339336``` xml
@@ -348,9 +345,9 @@ class AuthCode extends BaseAuthCode
348345 <field fieldName =" id" id =" true" strategy =" AUTO" />
349346 <reference-one target-document =" Acme\ApiBundle\Document\Client" field =" client" />
350347 </document >
351-
348+
352349</doctrine-mongo-mapping >
353- ```
350+ ```
354351
355352``` php
356353<?php
@@ -362,11 +359,11 @@ namespace Acme\ApiBundle\Document;
362359use FOS\OAuthServerBundle\Document\AccessToken as BaseAccessToken;
363360use FOS\OAuthServerBundle\Model\ClientInterface;
364361
365- class AccessToken extends BaseAccessToken
362+ class AccessToken extends BaseAccessToken
366363{
367364 protected $id;
368365 protected $client;
369-
366+
370367 public function getClient()
371368 {
372369 return $this->client;
@@ -376,7 +373,6 @@ class AccessToken extends BaseAccessToken
376373 {
377374 $this->client = $client;
378375 }
379-
380376}
381377```
382378
@@ -392,9 +388,9 @@ class AccessToken extends BaseAccessToken
392388 <field fieldName =" id" id =" true" strategy =" AUTO" />
393389 <reference-one target-document =" Acme\ApiBundle\Document\Client" field =" client" />
394390 </document >
395-
391+
396392</doctrine-mongo-mapping >
397- ```
393+ ```
398394
399395``` php
400396<?php
@@ -406,11 +402,11 @@ namespace Acme\ApiBundle\Document;
406402use FOS\OAuthServerBundle\Document\RefreshToken as BaseRefreshToken;
407403use FOS\OAuthServerBundle\Model\ClientInterface;
408404
409- class RefreshToken extends BaseRefreshToken
405+ class RefreshToken extends BaseRefreshToken
410406{
411407 protected $id;
412408 protected $client;
413-
409+
414410 public function getClient()
415411 {
416412 return $this->client;
@@ -420,7 +416,6 @@ class RefreshToken extends BaseRefreshToken
420416 {
421417 $this->client = $client;
422418 }
423-
424419}
425420```
426421
@@ -436,9 +431,9 @@ class RefreshToken extends BaseRefreshToken
436431 <field fieldName =" id" id =" true" strategy =" AUTO" />
437432 <reference-one target-document =" Acme\ApiBundle\Document\Client" field =" client" />
438433 </document >
439-
434+
440435</doctrine-mongo-mapping >
441- ```
436+ ```
442437
443438### Step 4: Configure your application's security.yml
444439
@@ -581,8 +576,8 @@ $client->setAllowedGrantTypes(array('token', 'authorization_code'));
581576$clientManager->updateClient($client);
582577` ` `
583578
584- Once you have created a client, you need to pass its `publicId` to the authorize endpoint. You also need
585- to specify a redirect uri as well as a response type.
579+ Once you have created a client, you need to pass its `publicId` to the authorize endpoint. You also need
580+ to specify a redirect uri as well as a response type.
586581
587582` ` ` php
588583return $this->redirect($this->generateUrl('fos_oauth_server_authorize', array(
0 commit comments