diff --git a/Resources/doc/index.md b/Resources/doc/index.md index 2f81abf2..34388068 100644 --- a/Resources/doc/index.md +++ b/Resources/doc/index.md @@ -282,47 +282,54 @@ You now can run the following command to create the model: ``` php - - - - - - - - -``` - ``` php client = $client; } + /** + * @param UserInterface $user + */ + public function setUser(UserInterface $user) + { + $this->user = $user; + } + /** + * @return UserInterface + */ + public function getUser() + { + return $this->user; + } } ``` -``` xml - - - - - - - - - - -``` - ``` php client = $client; } + /** + * @param UserInterface $user + */ + public function setUser(UserInterface $user) + { + $this->user = $user; + } + /** + * @return UserInterface + */ + public function getUser() + { + return $this->user; + } } ``` -``` xml - - - - - - - - - - -``` - ``` php client = $client; } + /** + * @param UserInterface $user + */ + public function setUser(UserInterface $user) + { + $this->user = $user; + } + /** + * @return UserInterface + */ + public function getUser() + { + return $this->user; + } } ``` -``` xml - - - - - - - - - - -``` - ### Step 4: Configure your application's security.yml In order for Symfony's security component to use the FOSOAuthServerBundle, you must