/**
  * UserController constructor.
  *
  * @param JsonRendererInterface $json
  * @param User $user
  */
 public function __construct(JsonRendererInterface $json, User $user = null)
 {
     $this->json = $json;
     $this->user = $user->setId(1)->setName('Anderson Costa')->setEmail('*****@*****.**')->setPassword('123')->setCreated(new \DateTime())->setUpdated(new \DateTime());
 }